new Section package and start doc pages and build scripts
This commit is contained in:
33
lib/h5md/Makefile.h5cc
Normal file
33
lib/h5md/Makefile.h5cc
Normal file
@ -0,0 +1,33 @@
|
||||
EXTRAMAKE=Makefile.lammps.empty
|
||||
|
||||
CC=h5cc
|
||||
|
||||
# -DH5_NO_DEPRECATED_SYMBOLS is required here to ensure we are using
|
||||
# the v1.8 API when HDF5 is configured to default to using the v1.6 API.
|
||||
CFLAGS=-D_DEFAULT_SOURCE -O2 -DH5_NO_DEPRECATED_SYMBOLS -Wall -fPIC
|
||||
HDF5_PATH=/usr
|
||||
INC=-I include
|
||||
AR=ar
|
||||
ARFLAGS=rc
|
||||
LIB=libch5md.a
|
||||
|
||||
all: lib Makefile.lammps
|
||||
|
||||
build:
|
||||
mkdir -p build
|
||||
build/ch5md.o: src/ch5md.c | build
|
||||
$(CC) $(INC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
Makefile.lammps:
|
||||
cp $(EXTRAMAKE) $@
|
||||
|
||||
.PHONY: all lib clean
|
||||
|
||||
$(LIB): build/ch5md.o
|
||||
$(AR) $(ARFLAGS) $(LIB) build/ch5md.o
|
||||
|
||||
lib: $(LIB)
|
||||
|
||||
clean:
|
||||
rm -f build/*.o $(LIB)
|
||||
|
||||
Reference in New Issue
Block a user