Makefile 605 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
12

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

Huihuo Zheng's avatar
Huihuo Zheng committed
15
16


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

test_mmap_mem: test_mmap_mem.o ../utils/profiling.o 
	$(CXX) $(CFLAGS) -o $@ $< ../utils/profiling.o

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