# $Id: Makefile,v 1.9 2011/04/18 16:14:11 duncan Exp $ include ${FSLCONFDIR}/default.mk PROJNAME = meshclass USRINCFLAGS = -I${INC_NEWMAT} -I${INC_ZLIB} -I${INC_BOOST} USRLDFLAGS = -L${LIB_NEWMAT} -L${LIB_ZLIB} LIBS=-lnewimage -lmiscmaths -lfslio -lniftiio -lznz -lnewmat -lutils -lz MESHOBJS=point.o mpoint.o triangle.o mesh.o pt_special.o profile.o DRAWOBJS=drawmesh.o mpoint.o triangle.o mesh.o point.o pt_special.o INTEROBJS=selfintersection.o mpoint.o triangle.o mesh.o point.o pt_special.o XFILES=drawmesh selfintersection DBGFLAGS=-g all: meshclass.a ${XFILES} meshclass.a: ${MESHOBJS} ${AR} -r libmeshclass.a ${MESHOBJS} drawmesh:${DRAWOBJS} ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${DRAWOBJS} ${LIBS} selfintersection:${INTEROBJS} ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${INTEROBJS} ${LIBS}