home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / troff / dos / eqn / djgpp.mak < prev   
Encoding:
Makefile  |  1992-04-17  |  2.5 KB  |  97 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. # default device
  22. DEVICE=ps
  23. CFLAGS=-O2 -Wall
  24. CC=gcc -x c++
  25. LDFLAGS=-x none
  26. STRIP=strip
  27. AOUT2EXE=aout2exe
  28. INCLUDES=-I../lib
  29. YACC=bison -y
  30. YACCFLAGS=-v
  31. ETAGS=etags
  32. ETAGSFLAGS=-p
  33. OBJECTS=eqn_tab.o main.o lex.o  box.o limit.o list.o over.o text.o \
  34.     script.o mark.o other.o delim.o sqrt.o pile.o special.o
  35. SOURCES=main.c lex.c eqn.y box.c limit.c list.c over.c text.c \
  36.     script.c mark.c other.c delim.c sqrt.c pile.c special.c \
  37.     eqn.h box.h pbox.h
  38.  
  39. .c.o:
  40.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  41.  
  42. all: eqn.exe
  43.  
  44. eqn.exe: eqn
  45.     $(STRIP) $<
  46.     $(AOUT2EXE) $<
  47.  
  48. eqn: $(OBJECTS) ../lib/libgroff.a
  49.     $(CC) $(LDFLAGS) -o $@ @$(mktmp $(^:t" \n ")\n) $(LIBS)
  50.  
  51. eqn.tab.c: eqn.y
  52.     $(YACC) $(YACCFLAGS) -d eqn.y
  53.     mv y.tab.c eqn.tab.c
  54.     mv y.tab.h eqn.tab.h
  55.  
  56. eqn.tab.o: box.h
  57. box.o: eqn.h box.h pbox.h
  58. limit.o: eqn.h box.h pbox.h
  59. text.o: eqn.h box.h pbox.h ../lib/ptable.h
  60. over.o: eqn.h box.h pbox.h
  61. list.o: eqn.h box.h pbox.h
  62. script.o: eqn.h box.h pbox.h
  63. mark.o: eqn.h box.h pbox.h
  64. other.o: eqn.h box.h pbox.h
  65. delim.o: eqn.h box.h pbox.h
  66. sqrt.o: eqn.h box.h pbox.h
  67. pile.o: eqn.h box.h pbox.h
  68. special.o: eqn.h box.h pbox.h
  69. main.o: device.h eqn.h box.h  ../lib/stringcl.h
  70. lex.o: eqn.h eqn_tab.c box.h ../lib/stringcl.h ../lib/ptable.h
  71.  
  72. #device.h: FORCE
  73. #    @$(SHELL) ../gendef $@ "DEVICE=\"$(DEVICE)\""
  74.  
  75. #install.bin: eqn
  76. #    -[ -d $(BINDIR) ] || mkdir $(BINDIR)
  77. #    -rm -f $(BINDIR)/geqn
  78. #    cp eqn $(BINDIR)/geqn
  79.  
  80. #install.nobin:
  81.  
  82. install: install.bin install.nobin
  83.  
  84. TAGS: $(SOURCES)
  85.     $(ETAGS) $(ETAGSFLAGS) $(SOURCES)
  86.  
  87. clean:
  88.     -rm -f *.o core eqn gmon.out device.h
  89.  
  90. distclean: clean
  91.     -rm -f TAGS eqn.output y.output
  92.  
  93. realclean: distclean
  94.     -rm -f eqn.tab.c eqn.tab.h
  95.  
  96. FORCE:
  97.