-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (40 loc) · 1.04 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
CXXFLAGS=-O2 -std=c++0x -Wall -pedantic
BINARIES = reverse_list powerset binpower selection bineq fold dpSms dpHorse
BINARIES += matrix_fib max_prod lap cut_rod
all: $(BINARIES)
powerset: powerset.cc
reverse_list: reverse_list.cc
binpower: binpower.cc
selection: selection.cc
bineq: bineq.cc
fold: fold.cc
dpSms: dpSms.cc
dpHorse: dpHorse.cc
matrix_fib: matrix_fib.cc
max_prod: max_prod.cc
lap: lap.cc
cut_rod: cut_rod.cc
powerset_test: powerset
echo '1 2 3' | ./powerset
reverse_list_test: reverse_list
echo '1' | ./reverse_list
echo '' | ./reverse_list
echo '5 4 3 2 1' | ./reverse_list
binpower_test: binpower
echo 0 0 | ./binpower
echo 1 0 | ./binpower
echo 3 1 | ./binpower
echo 3 0 | ./binpower
echo 3 4 | ./binpower
echo 2 3 | ./binpower
selection_test: selection
echo 5 4 3 5 2 1 4 | ./selection
echo 1 2 1 | ./selection
cut_rod_test: cut_rod
echo 1 1 1 | ./cut_rod
echo 1 5 8 9 | ./cut_rod
.PHONY: powerset_test reverse_list_test binpower_test selection_test cut_rod_test
.PHONY: clean
clean:
$(RM) $(BINARIES)
$(RM) *.o