home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / troff / dos / pic / djgpp.mak
Encoding:
Makefile  |  1992-04-17  |  2.3 KB  |  90 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 -Wall
  23. LDFLAGS=-x none
  24. STRIP=strip
  25. AOUT2EXE=aout2exe
  26. INCLUDES=-I../lib
  27. MLIBS=-lm
  28. YACCFLAGS=-v
  29. YACC=bison -y
  30. ETAGS=etags
  31. ETAGSFLAGS=-p
  32.  
  33. OBJECTS=pic_tab.o lex.o main.o object.o common.o troff.o tex.o # fig.o 
  34. SOURCES=pic_tab.c lex.c main.c object.c common.c troff.c tex.c
  35. HEADERS=pic.h text.h output.h object.h common.h position.h
  36.  
  37. .c.o:
  38.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  39.  
  40. all: pic.exe
  41.  
  42. pic.exe : pic
  43.     $(STRIP) $<
  44.     $(AOUT2EXE) $<
  45.  
  46. pic: $(OBJECTS) ../lib/libgroff.a
  47.     $(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(MLIBS)
  48.  
  49. pic_tab.c: pic.y
  50.     $(YACC) $(YACCFLAGS) -d pic.y
  51.     mv y_tab.c pic_tab.c
  52.     mv y_tab.h pic_tab.h
  53.  
  54. PIC_H= pic.h text.h output.h position.h \
  55.        ../lib/lib.h ../lib/errarg.h ../lib/error.h ../lib/assert.h \
  56.        ../lib/stringcl.h ../lib/cset.h 
  57.  
  58. pic_tab.o: $(PIC_H) object.h
  59. object.o: $(PIC_H) object.h
  60. troff.o: $(PIC_H) common.h
  61. tex.o: $(PIC_H) common.h
  62. # fig.o: $(PIC_H)
  63. common.o: $(PIC_H) common.h
  64. main.o: $(PIC_H)
  65. lex.o: $(PIC_H) pic_tab.c object.h
  66.  
  67. saber_pic:
  68.     @#load $(INCLUDES) $(CFLAGS) $(SOURCES) ../lib/libgroff.a -lm
  69.  
  70. TAGS : $(SOURCES)
  71.     $(ETAGS) $(ETAGSFLAGS) $(SOURCES) $(HEADERS)
  72.  
  73. clean:
  74.     -rm -f *.o core pic
  75.  
  76. distclean: clean
  77.     -rm -f pic.output y.output TAGS
  78.  
  79. realclean: distclean
  80.     -rm -f pic_tab.c pic_tab.h
  81.  
  82. #install.bin: pic
  83. #    -[ -d $(BINDIR) ] || mkdir $(BINDIR)
  84. #    -rm -f $(BINDIR)/gpic
  85. #    cp pic $(BINDIR)/gpic
  86.  
  87. install.nobin:
  88.  
  89. install: install.bin install.nobin
  90.