Makefile

Wed, 30 Jan 2002 08:55:53 +0000

author
eric
date
Wed, 30 Jan 2002 08:55:53 +0000
changeset 44
0f78374addae
parent 43
b80cb5a4282a
child 48
3d0be1c1c1b2
permissions
-rw-r--r--

changed program name to "t2p"

eric@44 1 # t2p: build a PDF file out of one or more TIFF Class F Group 4 files
eric@1 2 # Makefile
eric@44 3 # $Id: Makefile,v 1.9 2002/01/30 00:55:53 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@44 27 SRCS = bitblt.c bitblt_test.c t2p.c semantics.c
eric@44 28 HDRS = type.h bitblt.h t2p.h semantics.h
eric@12 29 MISC = Makefile scanner.l parser.y
eric@12 30
eric@44 31 TARGETS = t2p 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@44 37 t2p: t2p.o scanner.o semantics.o parser.tab.o bitblt.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@44 43 rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC)
eric@44 44
eric@44 45 very_clean:
eric@44 46 rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC) \
eric@44 47 *~ *.pdf
eric@15 48
eric@20 49 wc:
eric@20 50 wc -l $(SRCS) $(HDRS) $(MISC)
eric@20 51
eric@20 52 ls-lt:
eric@20 53 ls -lt $(SRCS) $(HDRS) $(MISC)
eric@20 54
eric@15 55
eric@15 56 %.tab.c %.tab.h %.output: %.y
eric@6 57 $(YACC) $(YFLAGS) $<
eric@6 58
eric@6 59 # %.c: %.l
eric@11 60 # $(LEX) $(LFLAGS) $<
eric@11 61
eric@15 62
eric@15 63 ALL_SRCS = $(SRCS) $(AUTO_SRCS)
eric@15 64
eric@15 65 DEPENDS = $(ALL_SRCS:.c=.d)
eric@15 66
eric@15 67 %.d: %.c
eric@15 68 $(CC) -M -MG $(CFLAGS) $< | sed -e 's@ /[^ ]*@@g' -e 's@^\(.*\)\.o:@\1.d \1.o:@' > $@
eric@15 69
eric@15 70 include $(DEPENDS)