Makefile

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