Makefile 483 Bytes
Newer Older
Huihuo Zheng's avatar
Huihuo Zheng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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 $< 

test: test_cache test_mmap_mem

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:
	rm -rf *.o read_dataset_cache prepare_dataset test_mmap test_cache test_mmap_mem