-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
18 lines (13 loc) · 1.04 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC = g++
CFLAGS = -Wall -std=c++11 -fopenmp
CFLAGS_DEBUG = -Wall -std=c++11 -fopenmp -g
TBTK_DIR = /home/andi/Documents/MasterThesis/TBTK
#CC = nvcc
#CFLAGS = -std=c++11 --compiler-options "-fopenmp"
all:
$(CC) $(CFLAGS) src/main.cpp src/Calculation.cpp src/ProcessArgs.cpp -Iinclude -I$(TBTK_DIR)/TBTK/calc/TightBindingLib/include -I$(TBTK_DIR)/hdf5/hdf5-build/include -L$(TBTK_DIR)/TBTK/calc/TightBindingLib/build -L$(TBTK_DIR)/hdf5/hdf5-build/hdf5/lib -o build/a.out -lTightBinding -lblas -llapack -lhdf5 -lhdf5_cpp -lcusparse -I$(TBTK_DIR)/hdf5/hdf5-build/hdf5/include/
#-I$(TBTK_DIR)/hdf5/hdf5-1.8.16/include/
clean:
rm -r build/*
debug:
$(CC) $(CFLAGS_DEBUG) src/main.cpp src/Calculation.cpp src/ProcessArgs.cpp -Iinclude -I$(TBTK_DIR)/TBTK/calc/TightBindingLib/include -I$(TBTK_DIR)/hdf5/hdf5-build/include -L$(TBTK_DIR)/TBTK/calc/TightBindingLib/build -L$(TBTK_DIR)/hdf5/hdf5-build/hdf5/lib -o build/a.out -lTightBinding -lblas -llapack -lhdf5 -lhdf5_cpp -lcusparse -I$(TBTK_DIR)/hdf5/hdf5-build/hdf5/include/ -I$(TBTK_DIR)/hdf5/hdf5-1.8.16/include/