shithub: jbig2

Download patch

ref: 5d215388772fd0c2931cdc4cafca74c1256bfea6
parent: 625abbded569d5ffde7301d497158b0116313f21
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Feb 19 00:48:44 EST 2002

Abstract the compiler command.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@45 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/makefile
+++ b/makefile
@@ -1,3 +1,4 @@
+CC=cc
 CFLAGS=-Wall -g -I/usr/local/include
 
 APPS=jbig2dec test_arith test_huffman test_png
@@ -7,13 +8,13 @@
 jbig2dec:	jbig2.o jbig2dec.o jbig2_huffman.o jbig2_arith.o jbig2_image.o jbig2_generic.o jbig2_symbol_dict.o jbig2_arith_int.o
 
 test_huffman:	jbig2_huffman.c
-	gcc $(CFLAGS) -DTEST jbig2_huffman.c -o test_huffman
+	$(CC) $(CFLAGS) -DTEST jbig2_huffman.c -o test_huffman
 
 test_arith:	jbig2_arith.c
-	gcc $(CFLAGS) -DTEST -DDEBUG jbig2_arith.c -o test_arith
+	$(CC) $(CFLAGS) -DTEST -DDEBUG jbig2_arith.c -o test_arith
 
 test_png:	png_image.o jbig2_image.o
-	gcc $(CFLAGS) -DTEST -DDEBUG png_image.c jbig2_image.o -lpng -lz -o test_png
+	$(CC) $(CFLAGS) -DTEST -DDEBUG png_image.c jbig2_image.o -lpng -lz -o test_png
 
 clean:
 	rm $(APPS) *.o