Makefile 670 Bytes
Newer Older
Huihuo Zheng's avatar
Huihuo Zheng committed
1
2
3
4
5
6
7
8
9
#Makefile
CXX=mpicxx -g -O3

CFLAGS=-I$(HDF5_ROOT)/include -O3 -I../utils
HDF5_LIB=-L$(HDF5_ROOT)/lib -lhdf5

%.o: %.cpp
	$(CXX) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< 

Huihuo Zheng's avatar
Huihuo Zheng committed
10
11
%.o: %.c
	$(CXX) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< 
Huihuo Zheng's avatar
Huihuo Zheng committed
12

13
14
test_mmap_mem: test_mmap_mem.o ../utils/profiling.o 
	$(CXX) $(CFLAGS) -o $@ $< ../utils/profiling.o
Huihuo Zheng's avatar
Huihuo Zheng committed
15

Huihuo Zheng's avatar
Huihuo Zheng committed
16
test_hdf5: test_hdf5.o ../utils/profiling.o ../utils/debug.o 
17
	$(CXX) $(CFLAGS) -o $@ $< ../utils/debug.o $(HDF5_LIB)
Huihuo Zheng's avatar
Huihuo Zheng committed
18
test: test_cache test_mmap_mem
Huihuo Zheng's avatar
Huihuo Zheng committed
19
20


Huihuo Zheng's avatar
Huihuo Zheng committed
21
22
23
24
test_cache: test_cache.o ../utils/profiling.o
	$(CXX) $(CFLAGS) -o $@ $< ../utils/profiling.o

clean:
Huihuo Zheng's avatar
Huihuo Zheng committed
25
	rm -rf *.o read_dataset_cache prepare_dataset test_mmap test_cache test_mmap_mem test_hdf5 *btr