home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-17 | 2.8 KB | 107 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.
-
- # FONTPATH says where to look for dev*/*
- FONTPATH=.;/usr/local/lib/groff/font;/usr/local/lib/font;/usr/lib/font
- OLDCC=gcc -x c
- CC=gcc -x c++
- CFLAGS=-O2
- OLDCFLAGS=-O2
- AR=ar
- RANLIB=ar rvs
- INCLUDES=-I.
- MALLOC=#malloc.o
- MALLOCFLAGS=
- FMOD=#fmod.o
- STRTOL=#strtol.o
- GETCWD=#getcwd.o
- OBJECTS=$(MALLOC) new.o itoa.o strerror.o error.o errarg.o fatal.o prime.o \
- strsave.o matherr.o assert.o iftoa.o string.o cset.o cmap.o \
- ptable.o font.o fontfile.o nametoin.o filename.o lineno.o \
- progname.o lf.o change_lf.o version.o tmpfile.o \
- $(FMOD) $(STRTOL) $(GETCWD)
- SOURCES=new.c itoa.c strerror.c error.c errarg.c fatal.c prime.c \
- strsave.c matherr.c fmod.c assert.c iftoa.c tmpfile.c getcwd.c \
- string.c cset.c cmap.c ptable.c font.c fontfile.c nametoin.c \
- filename.c lineno.c progname.c lf.c change_lf.c version.c \
- assert.h cset.h cmap.h errarg.h error.h font.h getpages.h \
- lib.h ptable.h stringcl.h
-
- .c.o:
- $(CC) -c $(INCLUDES) $(CFLAGS) $<
-
- all: libgroff.a
-
- libgroff.a: $(OBJECTS)
- $(AR) r libgroff.a @$(mktmp $(^:t" \n ")\n)
- $(RANLIB) libgroff.a
-
- version.c: ../VERSION
- @echo Making version.c
- @echo const char \*version_string = \"`cat ../VERSION`\"\; >$@
-
- malloc.o: malloc.c getpages.h
- $(OLDCC) $(OLDCFLAGS) $(MALLOCFLAGS) -c malloc.c
-
- itoa.o: itoa.c
- $(OLDCC) $(OLDCFLAGS) -c itoa.c
-
- iftoa.o: iftoa.c
- $(OLDCC) $(OLDCFLAGS) -c iftoa.c
-
- strerror.o: strerror.c
- $(OLDCC) $(OLDCFLAGS) -c strerror.c
-
- matherr.o: matherr.c
- $(OLDCC) $(OLDCFLAGS) -c matherr.c
-
- fmod.o: fmod.c
- $(OLDCC) $(OLDCFLAGS) -c fmod.c
-
- strtol.o: strtol.c
- $(OLDCC) $(OLDCFLAGS) -c strtol.c
-
- getcwd.o: getcwd.c
- $(OLDCC) $(OLDCFLAGS) -c getcwd.c
-
- string.o: stringcl.h
- lf.o: stringcl.h
- fontfile.o: fontpath.h
- tmpfile.o: lib.h errarg.h error.h
-
- #fontpath.h: FORCE
- # @$(SHELL) ../gendef $@ "FONTPATH=\"$(FONTPATH)\""
-
- TAGS : $(SOURCES)
- etags $(ETAGSFLAGS) $(SOURCES)
-
- clean:
- -rm -f *.o core libgroff.a version.c fontpath.h
-
- distclean: clean
- -rm -f TAGS
-
- realclean: distclean
-
- install:
- install.bin:
- install.nobin:
-
- FORCE:
-