Makefile

changeset 53
bb180150e603
parent 51
3398476bbedd
child 61
0dbb3612d812
     1.1 diff -r 7a996a86036d -r bb180150e603 Makefile
     1.2 --- a/Makefile	Wed Feb 19 10:15:16 2003 +0000
     1.3 +++ b/Makefile	Wed Feb 19 10:14:49 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.11 2003/01/21 10:53:48 eric Exp $
     1.8 +# $Id: Makefile,v 1.12 2003/02/19 02:14:49 eric Exp $
     1.9  # Copyright 2001 Eric Smith <eric@brouhaha.com>
    1.10  #
    1.11  # This program is free software; you can redistribute it and/or modify
    1.12 @@ -20,24 +20,31 @@
    1.13  
    1.14  
    1.15  CFLAGS = -Wall -g -I/usr/local/include/panda
    1.16 -LDLIBS = -g -ltiff -lm -L/usr/local/lib/panda -lpanda -lpng
    1.17 +
    1.18 +# Panda is not all that common, so we'll statically link it in order to
    1.19 +# make the t2p binary more portable.
    1.20 +
    1.21 +LDFLAGS = -g
    1.22 +LDLIBS = -Wl,-static -lpanda -Wl,-dy -lpng -ltiff -ljpeg -lz -lm -L/usr/local/lib/panda 
    1.23 +
    1.24  YACC = bison
    1.25  YFLAGS = -d -v
    1.26  
    1.27 +
    1.28  # -----------------------------------------------------------------------------
    1.29  # You shouldn't have to change anything below this point, but if you do please
    1.30  # let me know why so I can improve this Makefile.
    1.31  # -----------------------------------------------------------------------------
    1.32  
    1.33 -VERSION = 0.1
    1.34 +VERSION = 0.10
    1.35  
    1.36  PACKAGE = t2p
    1.37  
    1.38  TARGETS = t2p bitblt_test
    1.39  
    1.40 -CSRCS = t2p.c semantics.c bitblt.c bitblt_test.c
    1.41 +CSRCS = t2p.c semantics.c bitblt.c bitblt_test.c bitblt_table_gen.c
    1.42  OSRCS = scanner.l parser.y
    1.43 -HDRS = t2p.h semantics.h bitblt.h 
    1.44 +HDRS = t2p.h semantics.h bitblt.h
    1.45  MISC = COPYING Makefile
    1.46  
    1.47  DISTFILES = $(MISC) $(HDRS) $(CSRCS) $(OSRCS)
    1.48 @@ -45,13 +52,23 @@
    1.49  
    1.50  
    1.51  AUTO_CSRCS = scanner.c parser.tab.c
    1.52 -AUTO_HDRS = parser.tab.h
    1.53 +AUTO_HDRS = parser.tab.h bitblt_tables.h
    1.54  AUTO_MISC = parser.output
    1.55  
    1.56  
    1.57  all: $(TARGETS)
    1.58  
    1.59  
    1.60 +t2p: t2p.o scanner.o semantics.o parser.tab.o bitblt.o
    1.61 +
    1.62 +bitblt_tables.h: bitblt_table_gen
    1.63 +	./bitblt_table_gen >bitblt_tables.h
    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 +
    1.70  dist: $(DISTFILES)
    1.71  	-rm -rf $(DISTNAME)
    1.72  	mkdir $(DISTNAME)
    1.73 @@ -60,16 +77,11 @@
    1.74  	-rm -rf $(DISTNAME)
    1.75  
    1.76  
    1.77 -t2p: t2p.o scanner.o semantics.o parser.tab.o bitblt.o
    1.78 -
    1.79 -bitblt_test: bitblt_test.o bitblt.o
    1.80 -
    1.81 -
    1.82  clean:
    1.83 -	rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC)
    1.84 +	rm -f *.o *.d $(TARGETS) $(AUTO_CSRCS) $(AUTO_HDRS) $(AUTO_MISC)
    1.85  
    1.86  very_clean:
    1.87 -	rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC) \
    1.88 +	rm -f *.o *.d $(TARGETS) $(AUTO_CSRCS) $(AUTO_HDRS) $(AUTO_MISC) \
    1.89  		*~ *.pdf
    1.90  
    1.91  wc:
    1.92 @@ -82,9 +94,6 @@
    1.93  %.tab.c %.tab.h %.output: %.y
    1.94  	$(YACC) $(YFLAGS) $<
    1.95  
    1.96 -# %.c: %.l
    1.97 -# 	$(LEX) $(LFLAGS) $<
    1.98 -
    1.99  
   1.100  ALL_CSRCS = $(CSRCS) $(AUTO_CSRCS)
   1.101