|
|
1.1 root 1: # Instructions to Make, for compilation of ROS-based password lookup service
2:
3: BINDIR = /usr/new/
4: SBINDIR = /usr/etc/
5: ETCDIR = /usr/etc/
6:
7: CC = /bin/cc
8: CFLAGS = -g $(OPTIONS)
9: LINT = lint
10: LFLAGS = -bhuz $(OPTIONS)
11: LLIBS = -lisode
12: LD = ld
13: LDCC = /bin/cc
14: LDFLAGS = -g
15: LIBES = -lisode
16:
17: HFILES = ryinitiator.h ryresponder.h
18: CFILES = lookupd.c lookup.c ryinitiator.c ryresponder.c
19: RYFILES = lookup.ry
20:
21:
22: # Here it is...
23:
24: all: lookupd lookup
25: inst-all: inst-lookupd inst-lookup # manuals
26: install: inst-all clean
27: lint: l-lookupd l-lookup
28:
29:
30: # lookupd
31:
32: inst-lookupd: $(SBINDIR)ros.lookup
33:
34: $(SBINDIR)ros.lookup: lookupd
35: -cp $@ zros.lookup
36: -rm -f $@
37: cp lookupd $@
38: -@ls -gls $@
39: -@echo ""
40:
41: lookupd: lookupd.o PasswordLookup-Rops.o \
42: PasswordLookup-Rtypes.o ryresponder.o
43: $(LDCC) $(LDFLAGS) -o $@ lookupd.o \
44: PasswordLookup-Rops.o \
45: PasswordLookup-Rtypes.o \
46: ryresponder.o $(LIBES)
47:
48: l-lookupd: PasswordLookup-ops.c PasswordLookup-Rtypes.c \
49: true
50: $(LINT) $(LFLAGS) -DPERFORMER lookupd.c \
51: PasswordLookup-ops.c \
52: PasswordLookup-Rtypes.c \
53: ryresponder.c $(LLIBS)
54:
55: lookupd.o: ryresponder.h PasswordLookup-ops.h \
56: PasswordLookup-types.h
57:
58: PasswordLookup-Rops.o: PasswordLookup-ops.c PasswordLookup-ops.h
59: $(CC) $(CFLAGS) -DPERFORMER -c PasswordLookup-ops.c
60: mv PasswordLookup-ops.o $@
61:
62: PasswordLookup-Rtypes.c: PasswordLookup-types.py
63: pepy -a PY_advise $(PYFLAGS) -o $@ PasswordLookup-types.py
64:
65: PasswordLookup-types.py: PasswordLookup-asn.py
66: posy -f -h $(POFLAGS) -o $@ PasswordLookup-asn.py
67: PasswordLookup-types.h: PasswordLookup-types.py
68:
69: PasswordLookup-asn.py: lookup.ry
70: rosy $(RYFLAGS) -o $@ lookup.ry
71: PasswordLookup-ops.c: lookup.ry
72: PasswordLookup-ops.h: lookup.ry
73: PasswordLookup-stubs.c: lookup.ry
74:
75: ryresponder.o: ryresponder.h
76:
77:
78: # lookup
79:
80: inst-lookup: $(BINDIR)lookup
81:
82: $(BINDIR)lookup: lookup
83: -cp $@ zlookup
84: -rm -f $@
85: cp lookup $@
86: -@ls -gls $@
87: -@echo ""
88:
89: lookup: lookup.o PasswordLookup-Iops.o \
90: PasswordLookup-Itypes.o \
91: ryinitiator.o
92: $(LDCC) $(LDFLAGS) -o $@ lookup.o \
93: PasswordLookup-Iops.o \
94: PasswordLookup-Itypes.o \
95: ryinitiator.o $(LIBES)
96:
97: l-lookup: PasswordLookup-ops.c PasswordLookup-Itypes.c true
98: $(LINT) $(LFLAGS) -DINVOKER lookup.c \
99: PasswordLookup-ops.c \
100: PasswordLookup-Itypes.c \
101: PasswordLookup-stubs.c \
102: ryinitiator.c $(LLIBS)
103:
104: lookup.o: ryinitiator.h PasswordLookup-ops.h PasswordLookup-types.h
105:
106: PasswordLookup-Iops.o: PasswordLookup-ops.c PasswordLookup-ops.h
107: $(CC) $(CFLAGS) -DINVOKER -c PasswordLookup-ops.c
108: mv PasswordLookup-ops.o $@
109:
110: PasswordLookup-Itypes.c: PasswordLookup-types.py
111: pepy $(PYFLAGS) -o $@ PasswordLookup-types.py
112:
113: ryinitiator.o: ryinitiator.h
114:
115:
116: # manual pages
117:
118: MANUALS = lookupd.8c lookup.1c
119:
120: manuals:; install -c -m 0444 lookupd.8c \
121: /usr/man/man8/lookupd.8c
122: install -c -m 0444 lookup.1c /usr/man/mann/lookup.n
123:
124:
125: # clean
126:
127: clean:; rm -f *.o PasswordLookup* lookupd lookup z* _* core
128:
129: grind:; iprint READ-ME Makefile
130: tgrind -lc $(HFILES) $(CFILES)
131: tgrind -lpepy -d ../../pepy/grindefs $(RYFILES)
132: @echo $(MANUALS) | \
133: tr " " "\012" | \
134: sed -e "s%.*%itroff -man &%" | \
135: sh -ve
136:
137: true:;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.