1.1 --- a/Makefile Sat Mar 08 09:31:23 2003 +0000 1.2 +++ b/Makefile Sat Mar 08 10:02:13 2003 +0000 1.3 @@ -1,6 +1,6 @@ 1.4 # t2p: build a PDF file out of one or more TIFF Class F Group 4 files 1.5 # Makefile 1.6 -# $Id: Makefile,v 1.19 2003/03/07 23:23:49 eric Exp $ 1.7 +# $Id: Makefile,v 1.20 2003/03/08 02:02:13 eric Exp $ 1.8 # Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.9 # 1.10 # This program is free software; you can redistribute it and/or modify 1.11 @@ -19,9 +19,13 @@ 1.12 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA 1.13 1.14 1.15 +# Conditionals: uncomment the following defines as nessary. Note that a 1.16 +# "0" value is considered true by make, so to disable conditionals comment 1.17 +# them out or set them to a null string. 1.18 1.19 -DEBUG=1 1.20 -# STATIC=1 1.21 +#DEBUG=1 1.22 +#EFENCE=1 1.23 +#STATIC=1 1.24 1.25 1.26 CFLAGS = -Wall 1.27 @@ -31,6 +35,9 @@ 1.28 ifdef DEBUG 1.29 CFLAGS := $(CFLAGS) -g 1.30 LDFLAGS := $(LDFLAGS) -g 1.31 +endif 1.32 + 1.33 +ifdef EFENCE 1.34 LDLIBS := $(LDLIBS) -lefence -lpthread 1.35 endif 1.36 1.37 @@ -52,10 +59,10 @@ 1.38 1.39 PACKAGE = t2p 1.40 1.41 -TARGETS = t2p bitblt_test 1.42 +TARGETS = t2p 1.43 1.44 CSRCS = t2p.c semantics.c \ 1.45 - bitblt.c bitblt_test.c bitblt_table_gen.c \ 1.46 + bitblt.c bitblt_table_gen.c \ 1.47 pdf_g4.c pdf_g4_table_gen.c \ 1.48 pdf.c pdf_util.c pdf_prim.c pdf_bookmark.c pdf_name_tree.c 1.49 OSRCS = scanner.l parser.y 1.50 @@ -72,7 +79,10 @@ 1.51 AUTO_MISC = parser.output 1.52 1.53 1.54 -all: $(TARGETS) 1.55 +-include Maketest 1.56 + 1.57 + 1.58 +all: $(TARGETS) $(TEST_TARGETS) 1.59 1.60 1.61 t2p: t2p.o scanner.o semantics.o parser.tab.o bitblt.o \ 1.62 @@ -89,8 +99,6 @@ 1.63 1.64 bitblt_table_gen: bitblt_table_gen.o 1.65 1.66 -bitblt_test: bitblt_test.o bitblt.o 1.67 - 1.68 pdf_g4_tables.h: pdf_g4_table_gen 1.69 ./pdf_g4_table_gen >pdf_g4_tables.h 1.70 1.71 @@ -123,7 +131,7 @@ 1.72 $(YACC) $(YFLAGS) $< 1.73 1.74 1.75 -ALL_CSRCS = $(CSRCS) $(AUTO_CSRCS) 1.76 +ALL_CSRCS = $(CSRCS) $(AUTO_CSRCS) $(TEST_CSRCS) 1.77 1.78 DEPENDS = $(ALL_CSRCS:.c=.d) 1.79