home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / psgraph / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1992-09-06  |  2.4 KB  |  103 lines

  1. # $Header: Makefile,v 1.4 92/08/04 17:54:59 mogul Locked $
  2. # $Log:    Makefile,v $
  3. # Revision 1.4  92/08/04  17:54:59  mogul
  4. # undo RCS botch
  5. # Revision 1.3  1992/07/08  16:51:18  mogul
  6. # add examples to shar/tar files.
  7. #
  8. # Revision 1.2  92/07/08  15:54:17  mogul
  9. # PROLOG now defined in Makefile
  10. # Revision 1.2  92/05/15  14:28:07  mogul
  11. # PROLOG now defined in Makefile.
  12. # Revision 1.1  92/05/14  16:53:33  mogul
  13. # Initial revision
  14. # Revision 1.4  92/03/12  13:44:32  mogul
  15. # Added psgsimp
  16. # Revision 1.3  92/02/21  17:13:41  mogul
  17. # *** empty log message ***
  18. # Revision 1.2  89/01/27  15:53:54  kent
  19. # Added saber targets and installation.
  20. # Revision 1.1  89/01/04  13:57:24  kent
  21. # Initial revision
  22.  
  23. DESTROOT=
  24.  
  25. # These control where the binaries and manual pages will go
  26. BINDIR = /usr/local/bin
  27. MANDIR = /usr/local/man/man1
  28.  
  29. # This overrides the #define PROLOG in psgraph.h
  30. # If you change this, you should do a "make clean; make" to
  31. # ensure that all references are recompiled.
  32. PROLOGDIR = /usr/local/lib/ps
  33.  
  34. # Best to leave these two lines alone.
  35. PROLOGFILE = ${PROLOGDIR}/psgraph.pro
  36. DEFINES = -DPROLOG=\"${PROLOGFILE}\"
  37.  
  38. CFLAGS= -O ${DEFINES}
  39.  
  40. TARGETS = psgraph psgsimp
  41. OBJS=    main.o grid.o input.o output.o
  42. SRCS=    main.c grid.c input.c output.c psgsimp.c
  43.  
  44. all:    $(TARGETS)
  45.  
  46. install: $(TARGETS) psgraph.man
  47.     install -c -s psgraph      ${DESTROOT}/${BINDIR}/
  48.     install -c -s psgsimp      ${DESTROOT}/${BINDIR}/
  49.     install -c    psgraph.man ${DESTROOT}/${MANDIR}/psgraph.1
  50.     install -c    psgsimp.man ${DESTROOT}/${MANDIR}/psgsimp.1
  51.     install -c    psgraph.pro $(DESTROOT)/${PROLOGFILE}
  52.  
  53. clean:
  54.     rm -f *.o a.out ERRS LINT core ,* ${TARGETS} *.BAK *.CKP
  55.     rm -f psgraph.shar psgraph.tar psgraph.tar.Z
  56.  
  57. psgraph: $(OBJS)
  58.     cc -o psgraph $(CFLAGS) $(OBJS) -lm
  59.  
  60. psgsimp: psgsimp.o
  61.     cc -o psgsimp $(CFLAGS) psgsimp.o -lm
  62.  
  63. saber:
  64.     #load ${CFLAGS} ${SRCS} -lm
  65.  
  66. saber_o:
  67.     #load ${CFLAGS} ${OBJS} -lm
  68.  
  69. lint:    $(SRCS)
  70.     lint -c $(SRCS) > LINT
  71.  
  72. FILES =  README $(SRCS) psgraph.h psgraph.man psgsimp.man \
  73.     psgraph.pro Makefile LICENSE patchlevel.h
  74.  
  75. EXAMPLES_TAR = examples
  76.  
  77. EXAMPLES_SHAR = examples examples/*
  78.  
  79. psgraph.shar: $(FILES) $(EXAMPLES_SHAR)
  80.     rm -f psgraph.shar
  81.     shar $(FILES) $(EXAMPLES_SHAR) >psgraph.shar
  82.  
  83. psgraph.tar: $(FILES)  $(EXAMPLES_TAR)
  84.     rm -f psgraph.tar
  85.     tar cf psgraph.tar $(FILES) $(EXAMPLES_TAR)
  86.  
  87. psgraph.tar.Z: psgraph.tar
  88.     rm -f psgraph.tar.Z
  89.     compress psgraph.tar    
  90.  
  91. main.o:    psgraph.h
  92. grid.o:    psgraph.h
  93. input.o:    psgraph.h
  94. output.o:    psgraph.h
  95.