-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
20 lines (16 loc) · 813 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
COMPRESSOR = compression/compressor.c
DECOMPRESSOR = compression/decompressor.c
HUFFMAN = compression/huffman.c
HASHTABLE = util/hashtable/hashtable.c
PRIORITY_QUEUE = util/queue/priority_queue.c
QUEUE = util/queue/queue.c
BINARY_TREE = util/tree/binary_tree.c
BITWISE = util/bitwise/bitwise.c
file_compressor:
mkdir -p output/
gcc main.c -o output/file-compressor.out $(COMPRESSOR) $(DECOMPRESSOR) $(HUFFMAN) $(HASHTABLE) $(PRIORITY_QUEUE) $(QUEUE) $(BINARY_TREE) $(BITWISE)
tests:
mkdir -p output/
gcc unit_tests/hashtable/hashtable_tests.c -o output/hashtable_tests.out $(HASHTABLE) -lcunit
gcc unit_tests/queue/priority_queue_tests.c -o output/priority_queue_tests.out $(PRIORITY_QUEUE) $(QUEUE) -lcunit
gcc unit_tests/tree/binary_tree_tests.c -o output/binary_tree_tests.out $(BINARY_TREE) -lcunit