Prototype FSM implementation of adaptive entropy decoder
[platform/upstream/libaec.git] / src / Makefile
1 CC = gcc
2 CFLAGS = -g -Wall 
3
4 objects = mytest.o aed.o
5
6 mytest: $(objects)
7         $(CC) $(CFLAGS) -o mytest $(objects)
8
9 aed.o: aecd.h
10
11 .PHONY : clean test vtest
12 clean:
13         rm -f mytest ../data/ae_out $(objects)
14
15 test: mytest
16         ./mytest < ../data/example_data.szip > ../data/ae_out
17         diff ../data/ae_out ../data/example_data
18
19 vtest: mytest
20         valgrind -v ./mytest < example_data.szip > ae_out
21         diff ae_out example_data