aboutsummaryrefslogtreecommitdiffstats
path: root/icecompr/Makefile
blob: c98f5d3ef01bce5e6f9fc805e6a677d31d1425be (plain)
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
all: icecompr iceuncompr

test: example_1k.ok example_8k.ok

icecompr: icecompr.cc
	clang++ -o icecompr -Wall -Wextra -std=c++11 icecompr.cc

iceuncompr: iceuncompr.c
	clang -o iceuncompr -Wall -Wextra iceuncompr.c

%.compr: %.bin icecompr
	./icecompr -v $< $@
	

%.uncompr: %.compr iceuncompr
	./iceuncompr $< $@

%.ok: %.uncompr %.bin
	cmp $^
	touch $@

clean:
	rm -f icecompr iceuncompr *.d
	rm -f example_1k.compr example_8k.compr
	rm -f example_1k.uncompr example_8k.uncompr
	rm -f example_1k.ok example_8k.ok

.SECONDARY:
.PHONY: all test clean