1EXTRAMAKE=Makefile.lammps.empty 2 3CC=h5cc 4 5# -DH5_NO_DEPRECATED_SYMBOLS is required here to ensure we are using 6# the v1.8 API when HDF5 is configured to default to using the v1.6 API. 7CFLAGS=-D_DEFAULT_SOURCE -O2 -DH5_NO_DEPRECATED_SYMBOLS -Wall -fPIC 8HDF5_PATH=/usr 9INC=-I include 10AR=ar 11ARFLAGS=rc 12# need to build two libraries to not break compatibility and to support Install.py 13LIB=libh5md.a libch5md.a 14 15all: lib Makefile.lammps 16 17build: 18 mkdir -p build 19 20build/ch5md.o: src/ch5md.c | build 21 $(CC) $(INC) $(CFLAGS) -c $< -o $@ 22 23Makefile.lammps: 24 cp $(EXTRAMAKE) $@ 25 26.PHONY: all lib clean 27 28libch5md.a : build/ch5md.o 29 $(AR) $(ARFLAGS) $@ build/ch5md.o 30 31libh5md.a : build/ch5md.o 32 $(AR) $(ARFLAGS) $@ build/ch5md.o 33 34lib: $(LIB) 35 36clean: 37 rm -f build/*.o $(LIB) 38 39