-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·36 lines (25 loc) · 1.39 KB
/
Makefile
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
OBJS = dualSys.o newtonTest.o ICFS.o myUtils.o quasiNewton.o
CC = g++
DEBUG = -g
DFLAGS = -ggdb
CFLAGS = -Wall -std=c++20 -O2 -O3 -DNDEBUG -g -I /home/hari/libraries/eigen -I /home/hari/libraries/opengm-master/include -I/home/hari/libraries/opengm-master/src/external/AD3-patched/ -I/home/hari/libraries/opengm-master/src/external/AD3-patched/ad3/ -I/HDF_Group/HDF5/1.14.4.2/include/ -fopenmp -no-pie -c
LFLAGS = -Wall -std=c++20 -O2 -O3 -DNDEBUG -g -fopenmp -no-pie
LIBS = -L/usr/local/lib/ -L/home/hari/libraries/opengm-master/src/external/AD3-patched/ad3/ -L/HDF_Group/HDF5/1.14.4.2/lib/ -lad3 -lhdf5
#CFLAGS = -Wall -std=c++0x -I /home/hari/libraries/eigen -I /home/hari/libraries/opengm-master/include -I/home/hari/libraries/opengm-master/src/external/AD3-patched/ad3/ -fopenmp -c $(DEBUG) $(DFLAGS)
#LFLAGS = -Wall -std=c++0x -fopenmp $(DEBUG) $(DFLAGS)
#CFLAGS = -Wall -std=c++0x -I/home/hari/libraries/eigen -fopenmp -c
#LFLAGS = -Wall -std=c++0x -fopenmp
newtonTest : $(OBJS)
$(CC) $(LFLAGS) $(OBJS) $(LIBS) -o newtonTest
myUtils.o : myUtils.cpp myUtils.hpp
$(CC) $(CFLAGS) myUtils.cpp
dualSys.o : dualSys.cpp dualSys.hpp myUtils.hpp ICFS.h
$(CC) $(CFLAGS) dualSys.cpp
ICFS.o : ICFS.cpp ICFS.h
$(CC) $(CFLAGS) ICFS.cpp
quasiNewton.o: quasiNewton.cpp quasiNewton.hpp
$(CC) $(CFLAGS) quasiNewton.cpp
newtonTest.o : newtonTest.cpp dualSys.hpp myUtils.hpp
$(CC) $(CFLAGS) newtonTest.cpp
clean:
\rm *.o