-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
56 lines (46 loc) · 1.43 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
.PHONY : all _build_for_test bs
all: help.C entrance.C param_parser.C corelib/huffman.C corelib/tree.C
@echo
@echo "Building normal programs"
$(CXX) -c help.C -o .help
$(CXX) -c entrance.C -o .entrance
$(CXX) -c param_parser.C -o .param_parser
$(CXX) -c corelib/huffman.C -o .huffman
$(CXX) -c corelib/huffman_output.C -o .huffman_o
$(CXX) -c corelib/huffman_decode.C -o .huffman_d
$(CXX) -c corelib/tree.C -o .tree
$(CXX) -c corelib/bitstream.C -o .bitstream
$(CXX) .help .entrance .param_parser .huffman .tree .bitstream .huffman_o .huffman_d -o huff
test: all _build_for_test
testbs: all bs
_build_for_test: tests/priority_queue.C tests/queue.C
@echo
@echo
@echo "Building test programs"
g++ -c tests/priority_queue.C -o tests/.priority_queue
g++ -c tests/queue.C -o tests/.queue
g++ -c tests/bitstream.C -o tests/.bitstream
g++ tests/.priority_queue .tree -o tests/priority_queue
g++ tests/.queue .tree -o tests/queue
g++ tests/.bitstream .bitstream -o tests/bitstream
runtestpq:
@echo
@echo
@echo "Running Priority Queue Test"
tests/priority_queue
runtestq:
@echo
@echo
@echo "Running Queue Test"
tests/queue
bs:
@echo
@echo
@echo "Running Bitstream Test"
g++ -c tests/bitstream.C -o tests/.bitstream
g++ tests/.bitstream .bitstream -o tests/bitstream
./tests/bitstream
clean:
@echo
@echo "Cleaning up the binaries"
rm .bitstream .help .huff .huffman* .priority_queue .param_parser .tree .tree_printer .entrance