-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.k40
40 lines (37 loc) · 1.48 KB
/
Makefile.k40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PROG = main
CFLAGS = -Wall -Wextra -g -c -O2
OPENCVLIBS = -L/usr/local/anaconda/lib -lopencv_highgui -lopencv_core -lopencv_imgproc -ljpeg -lpng16 -Wl,-rpath,/usr/local/anaconda/lib
HDF5LFLAGS = -lhdf5 -lhdf5_cpp
CC = g++
OBJS = main.o setInfoFunction.o initializeFunction.o boundaryFunction.o astFunction.o freeFunction.o searchFunction.o calcPDE.o outputFunction.o checkStability.o outputImage.o outputHDF.o checkFunc.o
$(PROG): $(OBJS)
$(CC) -L/usr/local/lib -lsbml -lz -Wl,-rpath,/usr/local/lib $(OPENCVLIBS) $(HDF5LFLAGS) -o $(PROG) $(OBJS)
main.o: main.cpp
$(CC) $(CFLAGS) main.cpp
setInfoFunction.o: setInfoFunction.cpp
$(CC) $(CFLAGS) setInfoFunction.cpp
initializeFunction.o: initializeFunction.cpp
$(CC) $(CFLAGS) initializeFunction.cpp
boundaryFunction.o: boundaryFunction.cpp
$(CC) $(CFLAGS) boundaryFunction.cpp
astFunction.o: astFunction.cpp
$(CC) $(CFLAGS) astFunction.cpp
freeFunction.o: freeFunction.cpp
$(CC) $(CFLAGS) freeFunction.cpp
searchFunction.o: searchFunction.cpp
$(CC) $(CFLAGS) searchFunction.cpp
calcPDE.o: calcPDE.cpp
$(CC) $(CFLAGS) calcPDE.cpp
outputFunction.o: outputFunction.cpp
$(CC) $(CFLAGS) outputFunction.cpp
checkStability.o: checkStability.cpp
$(CC) $(CFLAGS) checkStability.cpp
outputImage.o: outputImage.cpp
$(CC) $(CFLAGS) -I/usr/local/anaconda/include outputImage.cpp
outputHDF.o: outputHDF.cpp
$(CC) $(CFLAGS) -I/usr/local/anaconda/include outputHDF.cpp
checkFunc.o: checkFunc.cpp
$(CC) $(CFLAGS) checkFunc.cpp
.PHONY: clean
clean:
rm -f $(PROG) $(OBJS)