home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-06-05 | 1.6 KB | 72 lines |
- # Makefile for Layers 1.0
-
- BIN = /usr/local
- MANDIR = /usr/local/manl
-
- PGM = layers
- PGM2 = layersize
- PGM3 = layertitle
- PGM4 = macbput
- MS = l
- CFLAGS = -O
- CFILES = layers.c protocol.c
- OFILES = layers.o protocol.o
-
- all: $(PGM) $(PGM2) $(PGM3) $(PGM4)
-
- $(PGM): $(OFILES)
- $(CC) $(CFLAGS) -o $(PGM) $(OFILES)
-
- # $(CC) $(CFLAGS) -o $(PGM) $(OFILES) -ltermcap
-
- layers.o: layers.c layers.h
- $(CC) $(CFLAGS) -c layers.c
-
- protocol.o: protocol.c layers.h
- $(CC) $(CFLAGS) -c protocol.c
-
- $(PGM2): layersize.o
- $(CC) $(CFLAGS) -o $(PGM2) layersize.o
-
- $(PGM3): layertitle.o
- $(CC) $(CFLAGS) -o $(PGM3) layertitle.o
-
- $(PGM4): macbput.o
- $(CC) $(CFLAGS) -o $(PGM4) macbput.o
-
- layersize.o: layersize.c
- $(CC) $(CFLAGS) -c layersize.c
-
- layertitle.o: layertitle.c
- $(CC) $(CFLAGS) -c layertitle.c
-
- macbput.o: macbput.c
- $(CC) $(CFLAGS) -c macbput.c
-
- install: $(PGM) $(PGM2) $(PGM3) $(PGM4)
- rm -f $(BIN)/$(PGM)
- install -c -s -o root -g daemon -m 4711 $(PGM) $(BIN)/$(PGM)
- install -c -s $(PGM2) $(BIN)/$(PGM2)
- install -c -s $(PGM3) $(BIN)/$(PGM3)
- # install -c -s $(PGM4) $(BIN)/$(PGM4)
-
- installnopriv: $(PGM) $(PGM2) $(PGM3) $(PGM4)
- rm -f $(BIN)/$(PGM)
- install -c -s $(PGM) $(BIN)/$(PGM)
- install -c -s $(PGM2) $(BIN)/$(PGM2)
- install -c -s $(PGM3) $(BIN)/$(PGM3)
- # install -c -s $(PGM4) $(BIN)/$(PGM4)
-
- manpage: layers.1
- rm -f $(MANDIR)/$(PGM).$(MS)
- cp layers.1 $(MANDIR)/$(PGM).$(MS)
- chmod 664 $(MANDIR)/$(PGM).$(MS)
-
- clean:
- rm -f a.out core $(PGM) $(PGM2) $(PGM3) $(PGM4) *.o
-
- shar: makefile
- shar README layers.1 makefile layers.h layers.c \
- protocol.c layersize.c layertitle.c MacLayers.sit.Hqx MacLayers.doc \
- macbput.c macbput.1 >layers.shar
-