home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / unix / unix_mw2.sha / Makefile < prev    next >
Makefile  |  1985-04-26  |  1KB  |  88 lines

  1.  
  2. #
  3. ##
  4. #    mwdvi  <->  macwrite to dvi translation program.
  5. #
  6. #    10/11/84  douglas orr
  7.  
  8.  
  9. #
  10. #   Installation Options:
  11. #
  12. ###
  13. #   version can be  BSD_41
  14. #        or  BSD_42
  15. VERSION=BSD_42
  16.  
  17. ###
  18. #   directory where TeX tfm information can be found
  19. #
  20. TFM_PATH=/usr/lib/font/imagen/tfm
  21.  
  22.  
  23. ###
  24. #    directory and group for installation of binaries
  25. #
  26. BINDIR    =/usr/local/bin
  27. BINGRP    =bin
  28. BINMODE    =711
  29.  
  30. RM= /bin/rm
  31. # An addition suggested by Conrad Cady of Cornell.
  32. # conrad@lasspvax.arpa
  33.  
  34. INSTALL=install
  35. INSOPTS=-g $(BINGRP) -m $(BINMODE) -s
  36.  
  37. #
  38. #
  39. CFLAGS= -O
  40.  
  41. SOURCES    = main.c dvi.c fonts.c md.c
  42. INCLUDES= gen.h option.h md.h dvi.h fonts.h
  43. OBJECTS    = main.o dvi.o fonts.o md.o
  44.  
  45. mwdvi:    $(OBJECTS)
  46.     cc -o mwdvi $(OBJECTS)
  47.  
  48. site.h: Makefile
  49.     echo "#define $(VERSION)=1" > site.new.h
  50.     echo "#define TFM_PATH=\"$(TFM_PATH)\"" >> site.new.h
  51.     -if( cmp -s site.h site.new.h );  \
  52.     then \
  53.         $(RM) -f site.new.h; \
  54.     else \
  55.         $(RM) -f site.h; \
  56.         mv site.new.h site.h; \
  57.     fi
  58.         
  59.  
  60.  
  61. main.o:        gen.h site.h option.h md.h
  62. md.o:        gen.h site.h option.h md.h dvi.h
  63. dvi.o:        gen.h site.h option.h md.h dvi.h fonts.h
  64. fonts.o:    gen.h site.h option.h md.h dvi.h fonts.h
  65.  
  66.  
  67. #
  68. #    administrative stuff
  69. #
  70. install:
  71.     $(INSTALL) $(INSOPTS) mwdvi $(BINDIR)
  72.  
  73.  
  74.  
  75. clean:
  76.     rm $(OBJECTS)
  77.  
  78. clobber:
  79.     rm -f $(SOURCES) $(INCLUDES) site.h
  80.  
  81. sources:
  82.     @echo $(SOURCES) $(INCLUDES)
  83.  
  84. mdump:    mdump.o
  85.     cc -o mdump mdump.o
  86.  
  87.  
  88.