Makefile 666 Bytes
Newer Older
Huihuo Zheng's avatar
ssd_vol    
Huihuo Zheng committed
1
2
3
4
5
6
7
8
CC=mpicc
#Your HDF5 install path
HDF5_DIR=$(HDF5_ROOT)

INCLUDES=-I$(MPI_DIR)/include -I$(HDF5_DIR)/include -I../utils/
LIBS=-L$(HDF5_DIR)/lib -lhdf5 -lz
#DEBUG=-DENABLE_EXT_PASSTHRU_LOGGING

Huihuo Zheng's avatar
write    
Huihuo Zheng committed
9
CFLAGS=$(INCLUDES) $(LIBS) 
Huihuo Zheng's avatar
ssd_vol    
Huihuo Zheng committed
10

Huihuo Zheng's avatar
debug    
Huihuo Zheng committed
11
TARGET=libh5passthrough_vol.so
Huihuo Zheng's avatar
write    
Huihuo Zheng committed
12
13
CXX=mpicxx
all: makeso test_write_cache
Huihuo Zheng's avatar
ssd_vol    
Huihuo Zheng committed
14

Huihuo Zheng's avatar
write    
Huihuo Zheng committed
15
16
17
18
%.o : %.cpp
	$(CXX) $(CFLAGS) -o $@ -c $<
test_write_cache: test_write_cache.o ../utils/debug.o H5Dio_cache.o
	$(CXX) $(CFLAGS) -o $@ test_write_cache.o ../utils/debug.o H5Dio_cache.o $(HDF5_LIB) 
Huihuo Zheng's avatar
ssd_vol    
Huihuo Zheng committed
19
20
21
22
23

makeso:
	$(CC) -shared $(CFLAGS)  $(DEBUG) -o $(TARGET) -fPIC H5VLpassthru_ext.c H5Dio_cache.c ../utils/debug.c
	cp $(TARGET) $(HDF5_DIR)/../vol
clean:
Huihuo Zheng's avatar
write    
Huihuo Zheng committed
24
25
26
	rm -f $(TARGET) *.o