-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (18 loc) · 695 Bytes
/
Makefile
File metadata and controls
30 lines (18 loc) · 695 Bytes
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++
CXXFLAGS = -g -std=c++11
RM = rm
all: decoder encoder
clean:
$(RM) *.o encoder decoder
encoder: encoder.o pairingheap.o binaryheap.o fourarycoheap.o
$(CXX) $(CXXFLAGS) -o encoder encoder.o pairingheap.o binaryheap.o fourarycoheap.o
encoder.o: encoder.cpp pairingheap.h binaryheap.h fourarycoheap.h
$(CXX) $(CXXFLAGS) -c encoder.cpp
pairingheap.o: pairingheap.h
binaryheap.o: binaryheap.h
fourarycoheap.o: fourarycoheap.h
decoder: decoder_huffman.o decoder.o encoder.o
$(CXX) $(CXXFLAGS) -o decoder decoder_huffman.o decoder.o
decoder_HMT.o: decoder_huffman.cpp decoder.h
$(CXX) $(CXXFLAGS) -c decoder_huffman.cpp
decoder.o: decoder.h