|
|
1.1 root 1: # $Header$
2: #
3: CFLAGS = -D$(VERSION) -I../../../include -O
4:
5: DEST = /usr/new/lib
6:
7: EXTHDRS = ../../../include/bin.h \
8: ../../../include/getarg.h \
9: ../../../include/macro.h \
10: ../../../include/null.h \
11: ../../../include/path.h \
12: ../../../include/slist.h \
13: ../../../include/spms.h \
14: ../../../include/system.h \
15: ../../../include/yesno.h \
16: /usr/include/ctype.h \
17: /usr/include/machine/machparam.h \
18: /usr/include/machine/machparam.h \
19: /usr/include/signal.h \
20: /usr/include/stdio.h \
21: /usr/include/sys/file.h \
22: /usr/include/sys/param.h \
23: /usr/include/sys/signal.h \
24: /usr/include/sys/types.h \
25: /usr/include/sys/types.h
26:
27: HDRS = pgrep.h
28:
29: LDFLAGS =
30:
31: LIBS = ../../../lib/libslist.a \
32: ../../../lib/libspms.a
33:
34: LINKER = cc
35:
36: LINTFLAGS = -D$(VERSION) -I../../../include
37:
38: LINTLIST = ../../../lib/llib-lslist.ln \
39: ../../../lib/llib-lspms.ln \
40: ../../../lib/llib-lpdb.ln \
41: -lc
42:
43: MAKEFILE = Makefile
44:
45: OBJS = Pgrep.o \
46: grep.o \
47: readmf.o
48:
49: PRINT = pr
50:
51: PROGRAM = pgrep
52:
53: SRCS = Pgrep.c \
54: grep.c \
55: readmf.c
56:
57: VERSION = V4BSD
58:
59: all: $(PROGRAM)
60:
61: $(PROGRAM): $(OBJS) $(LIBS)
62: @echo -n "Loading $(PROGRAM) ... "
63: @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
64: @echo "done"
65:
66: clean:; @rm -f $(OBJS) $(PROGRAM)
67:
68: co:; @co -r$(VERSION) $(HDRS) $(SRCS)
69:
70: depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
71:
72: diff:; @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
73:
74: index:; @ctags -wx $(HDRS) $(SRCS)
75:
76: install: $(PROGRAM)
77: @echo Installing $(PROGRAM) in $(DEST)
78: @install -s $(PROGRAM) $(DEST)
79:
80: lint:; @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
81:
82: print:; @$(PRINT) $(HDRS) $(SRCS)
83:
84: program: $(PROGRAM)
85:
86: tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
87:
88: update: $(DEST)/$(PROGRAM)
89:
90: $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
91: @make -f $(MAKEFILE) DEST=$(DEST) install tags
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.