home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-10-26 | 477 b | 32 lines |
- OBJS = peg.o tfix.o pegio.o
- SRCS = peg.c tfix.c pegio.c
- BINDIR = /usr/lbin
-
- #DEFS=-DBSD -DLPNMAX=128
- OPTS = -O $(DEFS)
- #
- # Name of executable
- BNAME = peg
-
- $(BNAME): $(OBJS) peg.h
- cc $(OPTS) -o $(BNAME) $(OBJS)
-
- peg.o: peg.c peg.h
- cc $(OPTS) -c peg.c
-
- tfix.o: tfix.c peg.h
- cc $(OPTS) -c tfix.c
-
- pegio.o: pegio.c peg.h
- cc $(OPTS) -c pegio.c
-
- clean:
- rm $(OBJS)
- install:
- mv peg $(BINDIR)/peg
- mv default.peg /etc/default/peg
- lint:
- lint -pubx $(SRCS) >lint.out
-
- peg.c: peg.y
-