shithub: jbig2

ref: 7181b7a84184562ccf72e34c11f75b158b58e61b
dir: /makefile/

View raw version
CFLAGS=-Wall -g -I/usr/local/include

APPS=jbig2dec test_arith test_huffman test_png

all:	$(APPS)

jbig2dec:	jbig2dec.o jbig2_huffman.o jbig2_arith.o jbig2_image.o

test_huffman:	jbig2_huffman.c
	gcc $(CFLAGS) -DTEST jbig2_huffman.c -o test_huffman

test_arith:	jbig2_arith.c
	gcc $(CFLAGS) -DTEST -DDEBUG jbig2_arith.c -o test_arith

test_png:	png_image.c
	gcc $(CFLAGS) -DTEST -DDEBUG png_image.c -lpng -lz -o test_png

clean:
	rm $(APPS) *.o