home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-17 | 2.5 KB | 97 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
- # default device
- DEVICE=ps
- CFLAGS=-O2 -Wall
- CC=gcc -x c++
- LDFLAGS=-x none
- STRIP=strip
- AOUT2EXE=aout2exe
- INCLUDES=-I../lib
- YACC=bison -y
- YACCFLAGS=-v
- ETAGS=etags
- ETAGSFLAGS=-p
- OBJECTS=eqn_tab.o main.o lex.o box.o limit.o list.o over.o text.o \
- script.o mark.o other.o delim.o sqrt.o pile.o special.o
- SOURCES=main.c lex.c eqn.y box.c limit.c list.c over.c text.c \
- script.c mark.c other.c delim.c sqrt.c pile.c special.c \
- eqn.h box.h pbox.h
-
- .c.o:
- $(CC) -c $(INCLUDES) $(CFLAGS) $<
-
- all: eqn.exe
-
- eqn.exe: eqn
- $(STRIP) $<
- $(AOUT2EXE) $<
-
- eqn: $(OBJECTS) ../lib/libgroff.a
- $(CC) $(LDFLAGS) -o $@ @$(mktmp $(^:t" \n ")\n) $(LIBS)
-
- eqn.tab.c: eqn.y
- $(YACC) $(YACCFLAGS) -d eqn.y
- mv y.tab.c eqn.tab.c
- mv y.tab.h eqn.tab.h
-
- eqn.tab.o: box.h
- box.o: eqn.h box.h pbox.h
- limit.o: eqn.h box.h pbox.h
- text.o: eqn.h box.h pbox.h ../lib/ptable.h
- over.o: eqn.h box.h pbox.h
- list.o: eqn.h box.h pbox.h
- script.o: eqn.h box.h pbox.h
- mark.o: eqn.h box.h pbox.h
- other.o: eqn.h box.h pbox.h
- delim.o: eqn.h box.h pbox.h
- sqrt.o: eqn.h box.h pbox.h
- pile.o: eqn.h box.h pbox.h
- special.o: eqn.h box.h pbox.h
- main.o: device.h eqn.h box.h ../lib/stringcl.h
- lex.o: eqn.h eqn_tab.c box.h ../lib/stringcl.h ../lib/ptable.h
-
- #device.h: FORCE
- # @$(SHELL) ../gendef $@ "DEVICE=\"$(DEVICE)\""
-
- #install.bin: eqn
- # -[ -d $(BINDIR) ] || mkdir $(BINDIR)
- # -rm -f $(BINDIR)/geqn
- # cp eqn $(BINDIR)/geqn
-
- #install.nobin:
-
- install: install.bin install.nobin
-
- TAGS: $(SOURCES)
- $(ETAGS) $(ETAGSFLAGS) $(SOURCES)
-
- clean:
- -rm -f *.o core eqn gmon.out device.h
-
- distclean: clean
- -rm -f TAGS eqn.output y.output
-
- realclean: distclean
- -rm -f eqn.tab.c eqn.tab.h
-
- FORCE:
-