Makefile

Sun, 30 Dec 2001 04:16:46 +0000

author
eric
date
Sun, 30 Dec 2001 04:16:46 +0000
changeset 15
dda3d673b82b
parent 12
c3e2c2344560
child 20
a1cd8cb9d09e
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.6 2001/12/29 20:16:46 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
    28 HDRS = type.h bitblt.h tiff2pdf.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 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) 
    46 %.tab.c %.tab.h %.output: %.y
    47 	$(YACC) $(YFLAGS) $<
    49 # %.c: %.l
    50 # 	$(LEX) $(LFLAGS) $<
    53 ALL_SRCS = $(SRCS) $(AUTO_SRCS)
    55 DEPENDS = $(ALL_SRCS:.c=.d)
    57 %.d: %.c
    58 	$(CC) -M -MG $(CFLAGS) $< | sed -e 's@ /[^ ]*@@g' -e 's@^\(.*\)\.o:@\1.d \1.o:@' > $@
    60 include $(DEPENDS)