1 #Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
2 # Written by James Clark (jjc@jclark.uucp)
4 #This file is part of groff.
6 #groff is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 1, or (at your option) any later
11 #groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 #WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #You should have received a copy of the GNU General Public License along
17 #with groff; see the file LICENSE. If not, write to the Free Software
18 #Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 DEFINES=-DTEX_SUPPORT # -DFIG_SUPPORT
31 GPERFFLAGS=-p -a -t -k 1,3,4 -c -C -N lookup_keyword -T
33 OBJECTS=pic.tab.o lex.o main.o object.o common.o troff.o tex.o key.o # fig.o
34 SOURCES=pic.y lex.c main.c object.c common.c troff.c tex.c key.c \
35 pic.h text.h output.h object.h common.h key.h position.h
36 MISC=Makefile TODO pic.gperf
39 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
43 pic: $(OBJECTS) ../lib/libgroff.a
44 $(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(MLIBS)
47 $(YACC) $(YACCFLAGS) -d pic.y
51 PIC_H= pic.h text.h output.h position.h \
52 ../lib/lib.h ../lib/errarg.h ../lib/error.h ../lib/assert.h \
53 ../lib/stringclass.h ../lib/cset.h
55 pic.tab.o: $(PIC_H) object.h
56 object.o: $(PIC_H) object.h
57 troff.o: $(PIC_H) common.h
58 tex.o: $(PIC_H) common.h
60 common.o: $(PIC_H) common.h
62 lex.o: $(PIC_H) pic.tab.c object.h key.h
63 key.o: $(PIC_H) key.h pic.tab.c object.h
66 $(GPERF) $(GPERFFLAGS) pic.gperf >$@
69 $(ETAGS) $(ETAGSFLAGS) $(SOURCES)
75 -rm -f pic.output y.output TAGS
78 -rm -f pic.tab.c pic.tab.h key.c
81 -[ -d $(BINDIR) ] || mkdir $(BINDIR)
86 install: install.bin install.nobin