home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / mac / 15 / makefile < prev    next >
Encoding:
Makefile  |  1990-06-05  |  1.6 KB  |  72 lines

  1. #                   Makefile for Layers 1.0
  2.  
  3. BIN    = /usr/local
  4. MANDIR = /usr/local/manl
  5.  
  6. PGM    = layers
  7. PGM2   = layersize
  8. PGM3   = layertitle
  9. PGM4   = macbput
  10. MS     = l
  11. CFLAGS = -O
  12. CFILES = layers.c protocol.c
  13. OFILES = layers.o protocol.o
  14.  
  15. all: $(PGM) $(PGM2) $(PGM3) $(PGM4)
  16.  
  17. $(PGM): $(OFILES)
  18.     $(CC) $(CFLAGS) -o $(PGM) $(OFILES)
  19.  
  20. #    $(CC) $(CFLAGS) -o $(PGM) $(OFILES) -ltermcap
  21.  
  22. layers.o: layers.c layers.h
  23.     $(CC) $(CFLAGS) -c layers.c
  24.  
  25. protocol.o: protocol.c layers.h
  26.     $(CC) $(CFLAGS) -c protocol.c
  27.  
  28. $(PGM2): layersize.o
  29.     $(CC) $(CFLAGS) -o $(PGM2) layersize.o
  30.  
  31. $(PGM3): layertitle.o
  32.     $(CC) $(CFLAGS) -o $(PGM3) layertitle.o
  33.  
  34. $(PGM4): macbput.o
  35.     $(CC) $(CFLAGS) -o $(PGM4) macbput.o
  36.  
  37. layersize.o: layersize.c
  38.     $(CC) $(CFLAGS) -c layersize.c
  39.  
  40. layertitle.o: layertitle.c
  41.     $(CC) $(CFLAGS) -c layertitle.c
  42.  
  43. macbput.o: macbput.c
  44.     $(CC) $(CFLAGS) -c macbput.c
  45.  
  46. install: $(PGM) $(PGM2) $(PGM3) $(PGM4)
  47.     rm -f $(BIN)/$(PGM)
  48.     install -c -s -o root -g daemon -m 4711 $(PGM) $(BIN)/$(PGM)
  49.     install -c -s $(PGM2) $(BIN)/$(PGM2)
  50.     install -c -s $(PGM3) $(BIN)/$(PGM3)
  51. #    install -c -s $(PGM4) $(BIN)/$(PGM4)
  52.  
  53. installnopriv: $(PGM) $(PGM2) $(PGM3) $(PGM4)
  54.     rm -f $(BIN)/$(PGM)
  55.     install -c -s $(PGM) $(BIN)/$(PGM)
  56.     install -c -s $(PGM2) $(BIN)/$(PGM2)
  57.     install -c -s $(PGM3) $(BIN)/$(PGM3)
  58. #    install -c -s $(PGM4) $(BIN)/$(PGM4)
  59.  
  60. manpage: layers.1
  61.     rm -f $(MANDIR)/$(PGM).$(MS)
  62.     cp layers.1 $(MANDIR)/$(PGM).$(MS)
  63.     chmod 664 $(MANDIR)/$(PGM).$(MS)
  64.  
  65. clean:
  66.     rm -f a.out core $(PGM) $(PGM2) $(PGM3) $(PGM4) *.o
  67.  
  68. shar: makefile 
  69.     shar README layers.1 makefile layers.h layers.c \
  70.     protocol.c layersize.c layertitle.c MacLayers.sit.Hqx MacLayers.doc \
  71.     macbput.c macbput.1 >layers.shar
  72.