-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·24 lines (20 loc) · 1.02 KB
/
Makefile
File metadata and controls
executable file
·24 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################
# Makefile
#
# author: He Zhang
# edited by: 11/2019
################################
CC=g++
DEPS=src/LinearSampling.h src/backtrace.cpp src/exact_LinearSampling.h src/exact_backtrace.cpp src/Utils/energy_parameter.h src/Utils/feature_weight.h src/Utils/intl11.h src/Utils/intl21.h src/Utils/intl22.h src/Utils/utility_v.h src/Utils/utility.h src/Utils/logspace.h
CFLAGS=-std=c++11 -O3
.PHONY : clean linearsampling
objects=bin/linearsampling_lazysaving bin/linearsampling_nonsaving bin/exact_linearsampling_lazysaving bin/exact_linearsampling_nonsaving
linearsampling: src/LinearSampling.cpp $(DEPS)
chmod +x linearsampling
mkdir -p bin
$(CC) src/LinearSampling.cpp $(CFLAGS) -o bin/linearsampling_lazysaving
$(CC) src/LinearSampling.cpp $(CFLAGS) -Dnon_saving -o bin/linearsampling_nonsaving
$(CC) src/exact_LinearSampling.cpp $(CFLAGS) -o bin/exact_linearsampling_lazysaving
$(CC) src/exact_LinearSampling.cpp $(CFLAGS) -Dnon_saving -o bin/exact_linearsampling_nonsaving
clean:
-rm $(objects)