Makefile

changeset 86
7de78f7789ef
parent 80
96c64a7566df
child 90
4830f4d7ba7a
     1.1 --- a/Makefile	Sat Mar 08 06:52:09 2003 +0000
     1.2 +++ b/Makefile	Sat Mar 08 07:23:49 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.18 2003/03/07 02:16:08 eric Exp $
     1.7 +# $Id: Makefile,v 1.19 2003/03/07 23:23:49 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,13 +19,25 @@
    1.12  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111  USA
    1.13  
    1.14  
    1.15 -CFLAGS = -Wall -g
    1.16 +
    1.17 +DEBUG=1
    1.18 +# STATIC=1
    1.19 +
    1.20 +
    1.21 +CFLAGS = -Wall
    1.22 +LDFLAGS =
    1.23 +LDLIBS = -ltiff -ljpeg -lz -lm
    1.24  
    1.25 -# Panda is not all that common, so we'll statically link it in order to
    1.26 -# make the t2p binary more portable.
    1.27 +ifdef DEBUG
    1.28 +CFLAGS := $(CFLAGS) -g
    1.29 +LDFLAGS := $(LDFLAGS) -g
    1.30 +LDLIBS := $(LDLIBS) -lefence -lpthread
    1.31 +endif
    1.32  
    1.33 -LDFLAGS = -g
    1.34 -LDLIBS = -ltiff -lm
    1.35 +ifdef STATIC
    1.36 +LDLIBS := -Wl,-static $(LDLIBS)
    1.37 +endif
    1.38 +
    1.39  
    1.40  YACC = bison
    1.41  YFLAGS = -d -v
    1.42 @@ -36,7 +48,7 @@
    1.43  # let me know why so I can improve this Makefile.
    1.44  # -----------------------------------------------------------------------------
    1.45  
    1.46 -VERSION = 0.10
    1.47 +VERSION = 0.11
    1.48  
    1.49  PACKAGE = t2p
    1.50  
    1.51 @@ -64,8 +76,13 @@
    1.52  
    1.53  
    1.54  t2p: t2p.o scanner.o semantics.o parser.tab.o bitblt.o \
    1.55 -	pdf_g4.o \
    1.56 -	pdf.o pdf_util.o pdf_prim.o pdf_bookmark.o pdf_name_tree.o
    1.57 +		pdf_g4.o \
    1.58 +		pdf.o pdf_util.o pdf_prim.o pdf_bookmark.o pdf_name_tree.o
    1.59 +	$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
    1.60 +ifndef DEBUG
    1.61 +	strip $@
    1.62 +endif
    1.63 +
    1.64  
    1.65  bitblt_tables.h: bitblt_table_gen
    1.66  	./bitblt_table_gen >bitblt_tables.h