# Makefile to compile libraries for GRAPE CC=g++ #CC=/usr/pubsw/package/Languages/gcc-2.95.3/@sys/bin/g++ LIB := ./lib SRC = ./src AUX = ./src/aux MAKE = make -j 1 #.SILENT: xCCOPTS = -g -Wall -Winline -Woverloaded-virtual -Wmissing-declarations \ -Wstrict-prototypes -Wmissing-prototypes -Wconversion \ -Wpointer-arith -Wcast-qual -Woverloaded-virtual -Winline xCCOPTS = -mpentiumpro -march=i686 -fno-exceptions -fno-rtti -O6 \ -fomit-frame-pointer -ffast-math xCCOPTS = -fno-exceptions -fno-rtti -O6 \ -fomit-frame-pointer -ffast-math CCOPTS = -Wall -g xCCOPTS = -Wall -g -DNOISY_CONSTRAINTS xCCOPTS = -Wall -pg xCCOPTS = -Wall -g -DJOB_VERBOSE xCCOPTS = -Wall -g -DJOB_VERBOSE -DJOB_VERBOSE2 xCCOPTS = -Wall -g -DJOB_VERBOSE2 -DJOB_VERBOSE -DNOISY_CONSTRAINTS export CC CCOPTS MAKE grape: tags (echo "Using Compiler Options: ${CCOPTS}"; cd ${SRC}; ${MAKE} grape) occ: (echo "Using Compiler Options: ${CCOPTS}"; cd ${SRC}; ${MAKE} occ) err_eval: (echo "Using Compiler Options: ${CCOPTS}"; cd ${SRC}; ${MAKE} err_eval) rand_eval: (echo "Using Compiler Options: ${CCOPTS}"; cd ${SRC}; ${MAKE} rand_eval) all: grape occ err_eval rand_eval tags: etags -l c++ --c++ src/*.C include/*.h include/*.inc src/aux/*.C include/aux/*.h include/aux/*.inc dox: rm -rf doc/ doxygen Doxyfile new: (rm grape; rm ${LIB}/libgrape.a; rm ${LIB}/libaux.a; ${MAKE} install) fresh: (rm ${SRC}/*.o; rm ${AUX}/*.o; rm ${LIB}/libgrape.a; rm ${LIB}/libaux.a) clean: (rm -f grape; cd ${LIB}; ${MAKE} clean;) @echo "done cleaning" mrproper: clean (cd ${SRC}; ${MAKE} mrproper;) (cd ${AUX}; ${MAKE} mrproper;) dist: (cd ${SRC}; ${MAKE} dist;) # # $@ -- the target # $< -- the first dependancy # $^ -- all dependancies # $* -- the "stem"... the part that would match the "%" in a default rule. # # these can all be followed by a "D" or a "F" to get just the # directory or the file part respectivly. To get just the path # the target, but not the file name itself for example, use: # $(@D). Similarly use $(@F) for just the file name. # #g++ -o ENVDUMP -I../include -I../include/aux Env-test.C -lgrape -laux -L../lib