-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (26 loc) · 763 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (26 loc) · 763 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
31
32
33
34
35
36
37
38
39
40
#
# Reference arithmetic coding
#
# Copyright (c) Project Nayuki
# MIT License. See readme file.
# https://www.nayuki.io/page/reference-arithmetic-coding
#
CXXFLAGS += -std=c++11 -O1 -Wall -Wextra -fsanitize=undefined
.SUFFIXES:
.SECONDARY:
.DEFAULT_GOAL = all
.PHONY: all clean
OBJ = ArithmeticCoder.o BitIoStream.o FrequencyTable.o PpmModel.o
MAINS = AdaptiveArithmeticCompress AdaptiveArithmeticDecompress ArithmeticCompress ArithmeticDecompress PpmCompress PpmDecompress
all: $(MAINS)
clean:
rm -f -- $(OBJ) $(MAINS:=.o) $(MAINS)
rm -rf .deps
%: %.o $(OBJ)
$(CXX) $(CXXFLAGS) -o $@ $^
%.o: %.cpp .deps/timestamp
$(CXX) $(CXXFLAGS) -c -o $@ -MMD -MF .deps/$*.d $<
.deps/timestamp:
mkdir -p .deps
touch .deps/timestamp
-include .deps/*.d