home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / troff / dos / etc / djgpp.mak
Encoding:
Makefile  |  1992-04-17  |  2.1 KB  |  86 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. BINDIR=/usr/local/bin
  21. CC=gcc -x c++
  22. CFLAGS=-O2
  23. LDFLAGS=-x none
  24. INCLUDES=-I../lib
  25. DEFINES=
  26. STRIP=strip
  27. AOUT2EXE=aout2exe
  28. GROG=grog.sh
  29. SOURCES=addftinf.c guess.c guess.h
  30. OBJECTS=addftinf.o guess.o
  31. ETAGS=etags
  32. ETAGSFLAGS=-p
  33.  
  34. .c.o:
  35.     $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
  36.  
  37. all: addftinf.exe soelim.exe
  38.  
  39. addftinf.exe: addftinf
  40.     $(STRIP) $<
  41.     $(AOUT2EXE) $<
  42.  
  43. addftinf: $(OBJECTS) ../lib/libgroff.a
  44.       $(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(LIBS)
  45.  
  46. addftinf.o: guess.h ../lib/lib.h ../lib/errarg.h ../lib/error.h \
  47.     ../lib/stringcl.h
  48.  
  49. guess.o: guess.h
  50.  
  51. soelim.exe: soelim
  52.     $(STRIP) $<
  53.     $(AOUT2EXE) $<
  54.  
  55. soelim: soelim.o ../lib/libgroff.a
  56.     $(CC) $(LDFLAGS) -o $@ soelim.o ../lib/libgroff.a $(LIBS)
  57.  
  58. soelim.o: ../lib/lib.h ../lib/errarg.h ../lib/error.h \
  59.     ../lib/stringcl.h
  60.  
  61. TAGS: $(SOURCES)
  62.     $(ETAGS) $(ETAGSFLAGS) $(SOURCES)
  63.  
  64. clean:
  65.     -rm -f *.o soelim addftinf core soelim.exe addftinf.exe
  66.  
  67. distclean: clean
  68.     -rm -f TAGS
  69.  
  70. realclean: distclean
  71.  
  72. #install.bin: all
  73. #    -[ -d $(BINDIR) ] || mkdir $(BINDIR)
  74. #    -rm -f $(BINDIR)/addftinfo
  75. #    cp addftinfo $(BINDIR)/addftinfo
  76. #    -rm -f $(BINDIR)/gsoelim
  77. #    cp soelim $(BINDIR)/gsoelim
  78.  
  79. #install.nobin:
  80. #    -[ -d $(BINDIR) ] || mkdir $(BINDIR)
  81. #    -rm -f $(BINDIR)/grog
  82. #    cp $(GROG) $(BINDIR)/grog
  83. #    chmod +x $(BINDIR)/grog
  84.  
  85. #install: install.bin install.nobin
  86.