home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume5 / lwf / part01 / Makefile < prev    next >
Makefile  |  1989-02-03  |  1KB  |  64 lines

  1.  
  2. CFLAGS = -O
  3.  
  4. # Where to put lwf
  5. LWF = /uh5h/ling/lee/bin/lwf
  6.  
  7. # Where to put the man page
  8. MAN = /uh5h/ling/lee/man/manl/lwf.1
  9.  
  10. # Where to put the PostScript prologue file
  11. #PROLOGUE = /uh5h/ling/lee/lib/lwf.prologue
  12. #(prologue incorporated -- gl)
  13.  
  14. # Environment options:
  15. #
  16. # -DPR=\"where pr is if not /bin/pr\"
  17. # -DSYSV            For System V (assumes SYSV-style pr)
  18. # -DREVERSE=0        Set to non-zero if page reversal is to be the default
  19. # -DHOSTNAME=\"yourhostname\"    If you don't have the hostname() system call
  20. # -DKPLACE=\"/usr/local/lib/k14.snf\"    Or wherever the kanji font is
  21. # -DKANJI        To include the printing of kanji
  22. #ENV = -DPROLOGUE=\"$(PROLOGUE)\" -DREVERSE=0
  23. ENV = -DREVERSE=0 -DKANJI -DKPLACE=\"k14.snf\"
  24.  
  25. KFONT = kfont.o
  26. XHEADERS = X.h Xmd.h Xproto.h Xprotostr.h fc.h font.h fontstruct.h \
  27.  misc.h os.h servermd.h
  28.  
  29. all:    lwf
  30.  
  31. lwf: lwf.o range.o $(KFONT)
  32.     cc $(CLFAGS) -o lwf lwf.o range.o $(KFONT) -lm
  33.  
  34. lwf.o: lwf.c
  35.     cc $(CFLAGS) -c $(ENV) lwf.c
  36.  
  37. range.o: range.c
  38.     cc $(CFLAGS) -c range.c
  39.  
  40. kfont.o: kfont.c $(XHEADERS)
  41.     cc $(CFLAGS) -c kfont.c
  42.  
  43. # Create the program to demonstrate and debug the range checking routine
  44. range: range.c
  45.     cc $(CFLAGS) -DRANGE_DEBUG -o range range.c
  46.  
  47. install: lwf lwf.man
  48. #    cp prologue $(PROLOGUE)
  49. #    chmod 0644 $(PROLOGUE)
  50.     cp lwf $(LWF)
  51.     chmod 0755 $(LWF)
  52.     ls -l $(LWF)
  53.     cp lwf.man $(MAN)
  54.     rm -f lwf lwf.o range.o kfont.o
  55.  
  56. lint:
  57.     lint -abchx $(ENV) lwf.c
  58.  
  59. clean:
  60.     rm -f core lwf lwf.o range.o kfont.o
  61.  
  62. shar:
  63.     makekit -nlwf. -m
  64.