Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F107440856
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Apr 8, 08:06
Size
664 B
Mime Type
text/x-makefile
Expires
Thu, Apr 10, 08:06 (2 d)
Engine
blob
Format
Raw Data
Handle
25408011
Attached To
rLAMMPS lammps
Makefile
View Options
EXTRAMAKE=Makefile.lammps.empty
CC=h5cc
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) -c $< -o $@
.PHONY: Makefile.lammps
Makefile.lammps:
@echo "# Settings that the LAMMPS build will import when this package library is used" > Makefile.lammps
ifneq "$(HDF5_PATH)" "/usr"
@echo "ch5md_SYSINC = -I${HDF5_PATH}/include" >> Makefile.lammps
@echo "ch5md_SYSLIB = -L${HDF5_PATH}/lib" >> Makefile.lammps
endif
$(LIB): build/ch5md.o
$(AR) $(ARFLAGS) $(LIB) build/ch5md.o
lib: $(LIB) Makefile.lammps
clean:
rm -f build/*.o $(LIB) Makefile.lammps
Event Timeline
Log In to Comment