Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F74435647
Makefile.h5cc
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
Sat, Jul 27, 20:03
Size
762 B
Mime Type
text/x-makefile
Expires
Mon, Jul 29, 20:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19395872
Attached To
rLAMMPS lammps
Makefile.h5cc
View Options
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
# need to build two libraries to not break compatibility and to support Install.py
LIB=libh5md.a 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
libch5md.a : build/ch5md.o
$(AR) $(ARFLAGS) $@ build/ch5md.o
libh5md.a : build/ch5md.o
$(AR) $(ARFLAGS) $@ build/ch5md.o
lib: $(LIB)
clean:
rm -f build/*.o $(LIB)
Event Timeline
Log In to Comment