Makefile.cubismz (882B)
1 include CubismZ/CubismApps/Makefile.config 2 3 ifneq "$(findstring mira,$(shell hostname))" "" 4 CPPFLAGS += -I${HOME}/usr/zlib/include 5 LIBS += -L${HOME}/usr/zlib/lib 6 CPPFLAGS += -I/soft/libraries/hdf5/current/cnk-xl/current/include 7 LIBS += -L/soft/libraries/hdf5/current/cnk-xl/current/lib 8 endif 9 10 ifneq "$(findstring cetus,$(shell hostname))" "" 11 CPPFLAGS += -I${HOME}/usr/zlib/include 12 LIBS += -L${HOME}/usr/zlib/lib 13 CPPFLAGS += -I/soft/libraries/hdf5/current/cnk-xl/current/include 14 LIBS += -L/soft/libraries/hdf5/current/cnk-xl/current/lib 15 endif 16 17 CubismZ_SRC = CubismZ/CubismApps/Compressor/source/WaveletCompressor.cpp 18 OBJLib1 = ${CubismZ_SRC:.cpp=.o} 19 20 all: $(OBJLib1) 21 ar rcs ../lib/libCubismZ.a $(OBJLib1) 22 ranlib ../lib/libCubismZ.a 23 24 .cpp.o: 25 $(CC) -c $(CPPFLAGS) $(INC) -o $@ $< 26 27 clean: 28 rm -f $(OBJLib1) ../lib/libCubismZ.a