home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / troff / dos / tbl / djgpp.mak
Encoding:
Makefile  |  1992-04-17  |  1.7 KB  |  72 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. STRIP=strip
  25. AOUT2EXE=aout2exe
  26. INCLUDES=-I../lib
  27. DEFINES=
  28. SOURCES=main.c table.c table.h
  29. MISC=Makefile TODO
  30. ETAGS=etags
  31. ETAGSFLAGS=-p
  32. BINDIR=/usr/local/bin
  33. OBJECTS=main.o table.o
  34.  
  35. .c.o:
  36.     $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
  37.  
  38. all: tbl.exe
  39.  
  40. tbl.exe: tbl
  41.     $(STRIP) $<
  42.     $(AOUT2EXE) $<
  43.  
  44. tbl: $(OBJECTS) ../lib/libgroff.a
  45.     $(CC) $(LDFLAGS) -o $@ $(OBJECTS) ../lib/libgroff.a $(LIBS)
  46.  
  47. TABLE_H=table.h ../lib/cset.h ../lib/cmap.h ../lib/stringcl.h \
  48.         ../lib/errarg.h ../lib/error.h ../lib/lib.h
  49.  
  50. main.o: $(TABLE_H) 
  51. table.o: $(TABLE_H)
  52.  
  53. TAGS : $(SOURCES)
  54.     $(ETAGS) $(ETAGSFLAGS) $(SOURCES)
  55.  
  56. clean:
  57.     -rm -f *.o core tbl
  58.  
  59. distclean: clean
  60.     -rm -f TAGS
  61.  
  62. realclean: distclean
  63.  
  64. #install.bin: tbl
  65. #    -[ -d $(BINDIR) ] || mkdir $(BINDIR)
  66. #    -rm -f $(BINDIR)/gtbl
  67. #    cp tbl $(BINDIR)/gtbl
  68.  
  69. install.nobin:
  70.  
  71. install: install.bin install.nobin
  72.