Makefile

Tue, 01 Jan 2002 06:11:43 +0000

author
eric
date
Tue, 01 Jan 2002 06:11:43 +0000
changeset 30
35fad7ec7732
parent 20
a1cd8cb9d09e
child 43
b80cb5a4282a
permissions
-rw-r--r--

add support for PDF file attributes: author, creator, title, etc.

eric@11 1 # tiff2pdf: build a PDF file out of one or more TIFF Class F Group 4 files
eric@1 2 # Makefile
eric@20 3 # $Id: Makefile,v 1.7 2001/12/30 23:24:50 eric Exp $
eric@1 4 # Copyright 2001 Eric Smith <eric@brouhaha.com>
eric@1 5 #
eric@1 6 # This program is free software; you can redistribute it and/or modify
eric@1 7 # it under the terms of the GNU General Public License version 2 as
eric@1 8 # published by the Free Software Foundation. Note that permission is
eric@1 9 # not granted to redistribute this program under the terms of any
eric@1 10 # other version of the General Public License.
eric@1 11 #
eric@1 12 # This program is distributed in the hope that it will be useful,
eric@1 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
eric@1 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
eric@1 15 # GNU General Public License for more details.
eric@1 16 #
eric@1 17 # You should have received a copy of the GNU General Public License
eric@1 18 # along with this program; if not, write to the Free Software
eric@1 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
eric@1 20
eric@1 21
eric@11 22 CFLAGS = -Wall -g -I/usr/local/include/panda
eric@6 23 LDLIBS = -g -ltiff -lm -L/usr/local/lib/panda -lpanda -lpng
eric@6 24 YACC = bison
eric@6 25 YFLAGS = -d -v
eric@6 26
eric@20 27 SRCS = bitblt.c bitblt_test.c tiff2pdf.c semantics.c
eric@20 28 HDRS = type.h bitblt.h tiff2pdf.h semantics.h
eric@12 29 MISC = Makefile scanner.l parser.y
eric@12 30
eric@15 31 TARGETS = tiff2pdf bitblt_test
eric@15 32
eric@15 33 AUTO_SRCS = scanner.c parser.tab.c
eric@15 34 AUTO_HDRS = parser.tab.h
eric@15 35 AUTO_MISC = parser.output
eric@15 36
eric@20 37 tiff2pdf: tiff2pdf.o scanner.o semantics.o parser.tab.o
eric@6 38
eric@11 39 bitblt_test: bitblt_test.o bitblt.o
eric@6 40
eric@6 41
eric@15 42 clean:
eric@15 43 rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC)
eric@15 44
eric@20 45 wc:
eric@20 46 wc -l $(SRCS) $(HDRS) $(MISC)
eric@20 47
eric@20 48 ls-lt:
eric@20 49 ls -lt $(SRCS) $(HDRS) $(MISC)
eric@20 50
eric@15 51
eric@15 52 %.tab.c %.tab.h %.output: %.y
eric@6 53 $(YACC) $(YFLAGS) $<
eric@6 54
eric@6 55 # %.c: %.l
eric@11 56 # $(LEX) $(LFLAGS) $<
eric@11 57
eric@15 58
eric@15 59 ALL_SRCS = $(SRCS) $(AUTO_SRCS)
eric@15 60
eric@15 61 DEPENDS = $(ALL_SRCS:.c=.d)
eric@15 62
eric@15 63 %.d: %.c
eric@15 64 $(CC) -M -MG $(CFLAGS) $< | sed -e 's@ /[^ ]*@@g' -e 's@^\(.*\)\.o:@\1.d \1.o:@' > $@
eric@15 65
eric@15 66 include $(DEPENDS)