Makefile

Mon, 26 Aug 2002 06:03:55 +0000

author
eric
date
Mon, 26 Aug 2002 06:03:55 +0000
changeset 48
3d0be1c1c1b2
parent 44
0f78374addae
child 51
3398476bbedd
permissions
-rw-r--r--

now use C99 stdint.h and stdbool.h

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