Makefile

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