home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / troff / dos / lib / djgpp.mak < prev   
Encoding:
Makefile  |  1992-04-17  |  2.8 KB  |  107 lines

  1. #Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
  2. #     Written by James Clark (jjc@jclark.uucp)
  3. #
  4. #This file is part of groff.
  5. #
  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
  9. #version.
  10. #
  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
  14. #for more details.
  15. #
  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.
  19.  
  20. # FONTPATH says where to look for dev*/*
  21. FONTPATH=.;/usr/local/lib/groff/font;/usr/local/lib/font;/usr/lib/font
  22. OLDCC=gcc -x c
  23. CC=gcc -x c++
  24. CFLAGS=-O2
  25. OLDCFLAGS=-O2
  26. AR=ar
  27. RANLIB=ar rvs
  28. INCLUDES=-I.
  29. MALLOC=#malloc.o
  30. MALLOCFLAGS=
  31. FMOD=#fmod.o
  32. STRTOL=#strtol.o
  33. GETCWD=#getcwd.o
  34. OBJECTS=$(MALLOC) new.o itoa.o strerror.o error.o errarg.o fatal.o prime.o \
  35.     strsave.o matherr.o assert.o iftoa.o string.o cset.o cmap.o \
  36.     ptable.o font.o fontfile.o nametoin.o filename.o lineno.o \
  37.     progname.o lf.o change_lf.o version.o tmpfile.o \
  38.     $(FMOD) $(STRTOL) $(GETCWD)
  39. SOURCES=new.c itoa.c strerror.c error.c errarg.c fatal.c prime.c \
  40.     strsave.c matherr.c fmod.c assert.c iftoa.c tmpfile.c getcwd.c \
  41.         string.c cset.c cmap.c ptable.c font.c fontfile.c nametoin.c \
  42.         filename.c lineno.c progname.c lf.c change_lf.c version.c \
  43.     assert.h cset.h cmap.h errarg.h error.h font.h getpages.h \
  44.     lib.h ptable.h stringcl.h
  45.  
  46. .c.o:
  47.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  48.  
  49. all: libgroff.a
  50.  
  51. libgroff.a: $(OBJECTS)
  52.     $(AR) r libgroff.a @$(mktmp $(^:t" \n ")\n)
  53.     $(RANLIB) libgroff.a
  54.  
  55. version.c: ../VERSION
  56.     @echo Making version.c
  57.     @echo const char \*version_string = \"`cat ../VERSION`\"\; >$@
  58.  
  59. malloc.o: malloc.c getpages.h
  60.     $(OLDCC) $(OLDCFLAGS) $(MALLOCFLAGS) -c malloc.c
  61.  
  62. itoa.o: itoa.c
  63.     $(OLDCC) $(OLDCFLAGS) -c itoa.c
  64.  
  65. iftoa.o: iftoa.c
  66.     $(OLDCC) $(OLDCFLAGS) -c iftoa.c
  67.  
  68. strerror.o: strerror.c
  69.     $(OLDCC) $(OLDCFLAGS) -c strerror.c
  70.  
  71. matherr.o: matherr.c
  72.     $(OLDCC) $(OLDCFLAGS) -c matherr.c
  73.  
  74. fmod.o: fmod.c
  75.     $(OLDCC) $(OLDCFLAGS) -c fmod.c
  76.  
  77. strtol.o: strtol.c
  78.     $(OLDCC) $(OLDCFLAGS) -c strtol.c
  79.  
  80. getcwd.o: getcwd.c
  81.     $(OLDCC) $(OLDCFLAGS) -c getcwd.c
  82.  
  83. string.o: stringcl.h
  84. lf.o: stringcl.h
  85. fontfile.o: fontpath.h
  86. tmpfile.o: lib.h errarg.h error.h
  87.  
  88. #fontpath.h: FORCE
  89. #    @$(SHELL) ../gendef $@ "FONTPATH=\"$(FONTPATH)\""
  90.  
  91. TAGS : $(SOURCES)
  92.     etags $(ETAGSFLAGS) $(SOURCES)
  93.  
  94. clean:
  95.     -rm -f *.o core libgroff.a version.c fontpath.h
  96.  
  97. distclean: clean
  98.     -rm -f TAGS
  99.  
  100. realclean: distclean
  101.  
  102. install:
  103. install.bin:
  104. install.nobin:
  105.  
  106. FORCE:
  107.