-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
executable file
·30 lines (20 loc) · 908 Bytes
/
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
CXX ?= g++
CC ?= gcc
CFLAGS = -Wall -Wconversion -O3 -fPIC -pthread -fopenmp
LIBS += -lgomp
#INCLUDEPATH += -I ../../3rdparty/eigen3.1.3 -I ../core/include
all: train infer
train: l1_minimization.o train.o
$(CXX) $(CFLAGS) $(INCLUDEPATH) -o train train.o l1_minimization.o $(LIBS)
infer: l1_minimization.o infer.o
$(CXX) $(CFLAGS) $(INCLUDEPATH) -o infer infer.o l1_minimization.o $(LIBS)
train.o: src/train.cpp src/l1_minimization.h
$(CXX) -c $(CFLAGS) $(INCLUDEPATH) -o train.o src/train.cpp $(LIBS)
infer.o: src/infer.cpp src/l1_minimization.h
$(CXX) -c $(CFLAGS) $(INCLUDEPATH) -o infer.o src/infer.cpp $(LIBS)
l1_minimization.o: src/l1_minimization.cpp src/l1_minimization.h
$(CXX) -c $(CFLAGS) $(INCLUDEPATH) -o l1_minimization.o src/l1_minimization.cpp
clean1:
rm -f *~ l1_minimization.o train.o infer.o
clean:
rm -f *~ l1_minimization.o train.o infer.o train infer