Makefile

Mon, 31 Dec 2001 07:25:08 +0000

author
eric
date
Mon, 31 Dec 2001 07:25:08 +0000
changeset 20
a1cd8cb9d09e
parent 15
dda3d673b82b
child 43
b80cb5a4282a
permissions
-rw-r--r--

*** empty log message ***

     1 # tiff2pdf: build a PDF file out of one or more TIFF Class F Group 4 files
     2 # Makefile
     3 # $Id: Makefile,v 1.7 2001/12/30 23:24:50 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 tiff2pdf.c semantics.c
    28 HDRS = type.h bitblt.h tiff2pdf.h semantics.h
    29 MISC = Makefile scanner.l parser.y
    31 TARGETS = tiff2pdf bitblt_test
    33 AUTO_SRCS = scanner.c parser.tab.c
    34 AUTO_HDRS = parser.tab.h
    35 AUTO_MISC = parser.output
    37 tiff2pdf: tiff2pdf.o scanner.o semantics.o parser.tab.o
    39 bitblt_test: bitblt_test.o bitblt.o
    42 clean:
    43 	rm -f *.o *.d $(TARGETS) $(AUTO_SRCS) $(AUTO_HDRS) $(AUTO_MISC) 
    45 wc:
    46 	wc -l $(SRCS) $(HDRS) $(MISC)
    48 ls-lt:
    49 	ls -lt $(SRCS) $(HDRS) $(MISC)
    52 %.tab.c %.tab.h %.output: %.y
    53 	$(YACC) $(YFLAGS) $<
    55 # %.c: %.l
    56 # 	$(LEX) $(LFLAGS) $<
    59 ALL_SRCS = $(SRCS) $(AUTO_SRCS)
    61 DEPENDS = $(ALL_SRCS:.c=.d)
    63 %.d: %.c
    64 	$(CC) -M -MG $(CFLAGS) $< | sed -e 's@ /[^ ]*@@g' -e 's@^\(.*\)\.o:@\1.d \1.o:@' > $@
    66 include $(DEPENDS)