home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / groff / dvi / Makefile.gnu < prev    next >
Encoding:
Makefile  |  1991-04-30  |  2.0 KB  |  79 lines

  1. #Copyright (C) 1989, 1990 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=g++
  22. CFLAGS=-g -O -Wall -Wcast-qual -Wwrite-strings
  23. LDFLAGS=-g
  24. OLDCC=gcc
  25. MLIBS=-lm
  26. INCLUDES=-I../driver -I../lib
  27. DEFINES=
  28. SOURCES=dvi.c
  29. MISC=Makefile devgps
  30. BINDIR=/usr/local/bin
  31. FONTDIR=/usr/local/lib/groff/font
  32. MACRODIR=/usr/local/lib/groff/tmac
  33. ETAGS=etags
  34. ETAGSFLAGS=-p
  35.  
  36. .c.o:
  37.     $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
  38.  
  39. all: grodvi tfmtodit devdvi
  40.  
  41. grodvi: dvi.o ../driver/libdriver.a ../lib/libgroff.a
  42.     $(CC) $(LDFLAGS) -o $@ dvi.o \
  43.     ../driver/libdriver.a ../lib/libgroff.a $(MLIBS)
  44.  
  45. tfmtodit: tfmtodit.o ../lib/libgroff.a
  46.     $(CC) $(LDFLAGS) -o $@ tfmtodit.o ../lib/libgroff.a $(MLIBS)
  47.  
  48. dvi.o: ../driver/printer.h ../driver/driver.h ../lib/font.h
  49.  
  50. install.bin: grodvi tfmtodit
  51.     -[ -d $(BINDIR) ] || mkdir $(BINDIR)
  52.     cp grodvi $(BINDIR)
  53.     cp tfmtodit $(BINDIR)
  54.     @echo Making install.bin in devdvi
  55.     @cd devdvi; $(MAKE) "FONTDIR=$(FONTDIR)" install.bin
  56.  
  57. install.nobin:
  58.     -[ -d $(MACRODIR) ] || mkdir $(MACRODIR)
  59.     cp tmac.dvi $(MACRODIR)
  60.     @echo Making install.nobin in devdvi
  61.     @cd devdvi; $(MAKE) "FONTDIR=$(FONTDIR)" install.nobin
  62.  
  63. TAGS: dvi.c
  64.     $(ETAGS) $(ETAGSFLAGS) dvi.c
  65.  
  66. clean:
  67.     -rm -f *.o core grodvi tfmtodit
  68.  
  69. distclean: clean
  70.     -rm -f TAGS
  71.  
  72. realclean: distclean
  73.  
  74. devdvi: FORCE
  75.     @echo Making all in $@
  76.     @cd $@; $(MAKE) all
  77.  
  78. FORCE:
  79.