home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-17 | 2.3 KB | 90 lines |
- #Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
- # Written by James Clark (jjc@jclark.uucp)
- #
- #This file is part of groff.
- #
- #groff is free software; you can redistribute it and/or modify it under
- #the terms of the GNU General Public License as published by the Free
- #Software Foundation; either version 1, or (at your option) any later
- #version.
- #
- #groff is distributed in the hope that it will be useful, but WITHOUT ANY
- #WARRANTY; without even the implied warranty of MERCHANTABILITY or
- #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- #for more details.
- #
- #You should have received a copy of the GNU General Public License along
- #with groff; see the file LICENSE. If not, write to the Free Software
- #Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- BINDIR=/usr/local/bin
- CC=gcc -x c++
- CFLAGS=-O2 -Wall
- LDFLAGS=-x none
- STRIP=strip
- AOUT2EXE=aout2exe
- INCLUDES=-I../lib
- MLIBS=-lm
- YACCFLAGS=-v
- YACC=bison -y
- ETAGS=etags
- ETAGSFLAGS=-p
-
- OBJECTS=pic_tab.o lex.o main.o object.o common.o troff.o tex.o # fig.o
- SOURCES=pic_tab.c lex.c main.c object.c common.c troff.c tex.c
- HEADERS=pic.h text.h output.h object.h common.h position.h
-
- .c.o:
- $(CC) -c $(INCLUDES) $(CFLAGS) $<
-
- all: pic.exe
-
- pic.exe : pic
- $(STRIP) $<
- $(AOUT2EXE) $<
-
- pic: $(OBJECTS) ../lib/libgroff.a
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(MLIBS)
-
- pic_tab.c: pic.y
- $(YACC) $(YACCFLAGS) -d pic.y
- mv y_tab.c pic_tab.c
- mv y_tab.h pic_tab.h
-
- PIC_H= pic.h text.h output.h position.h \
- ../lib/lib.h ../lib/errarg.h ../lib/error.h ../lib/assert.h \
- ../lib/stringcl.h ../lib/cset.h
-
- pic_tab.o: $(PIC_H) object.h
- object.o: $(PIC_H) object.h
- troff.o: $(PIC_H) common.h
- tex.o: $(PIC_H) common.h
- # fig.o: $(PIC_H)
- common.o: $(PIC_H) common.h
- main.o: $(PIC_H)
- lex.o: $(PIC_H) pic_tab.c object.h
-
- saber_pic:
- @#load $(INCLUDES) $(CFLAGS) $(SOURCES) ../lib/libgroff.a -lm
-
- TAGS : $(SOURCES)
- $(ETAGS) $(ETAGSFLAGS) $(SOURCES) $(HEADERS)
-
- clean:
- -rm -f *.o core pic
-
- distclean: clean
- -rm -f pic.output y.output TAGS
-
- realclean: distclean
- -rm -f pic_tab.c pic_tab.h
-
- #install.bin: pic
- # -[ -d $(BINDIR) ] || mkdir $(BINDIR)
- # -rm -f $(BINDIR)/gpic
- # cp pic $(BINDIR)/gpic
-
- install.nobin:
-
- install: install.bin install.nobin
-