|
|
1.1 root 1: # Makefile for some of the utilities that come with the
2: # notesfile package
3: #
4: # This isn't as general as it could/should be, I just copied
5: # these definitions from the Makefile in the "src" directory.
6: # Since these programs aren't really part of the distribution
7: # but rather a set of retrofit/upgrade utilities, I don't
8: # feel too bad about it.
9: #
10: BIN = /usr/local
11: MSTDIR = /usr/spool/notes
12: ARCHDIR = /usr/spool/oldnotes
13: NET = /usr/bin
14: NOTES = notes
15: NOTESUID = 10
16: ANON = anon
17: ANONUID = 4
18: CC = cc
19: CFLAGS = -DMSTDIR=\"$(MSTDIR)\" -DARCHDIR=\"$(ARCHDIR)\" \
20: -DNOTES=\"$(NOTES)\" -DNOTESUID=$(NOTESUID) \
21: -DANON=\"$(ANON)\" -DANONUID=$(ANONUID) \
22: -DBIN=\"$(BIN)\" -DRCSIDENT
23: #
24: #
25:
26: SRC = fieldzero.c nfrank.c structsize.c \
27: Makefile
28: SUBDIR= seq-cvt
29: DCP= /usr/ucb/rcp
30: DISTDIR= p:/usr/src/uiuc/notesfiles
31: ALL = fieldzero nfrank structsize
32: FIELDZERO = fieldzero.o ../src/recsio.o ../src/misc.o ../src/miscio.o \
33: ../src/perms.o ../src/check.o ../src/gtime.o ../src/gname.o \
34: ../src/cursor.o ../src/startup.o ../src/nfcomment.o \
35: ../src/nfabort.o
36: #
37: # So I can do quick fixes....
38: # FAMOUS LAST WORDS: DO NOT RUN RBEFIX UNLESS YOU ARE RBE.
39: # IT WILL DESTROY YOUR DATA
40: #
41: RBEFIX = rbefix.o ../src/recsio.o ../src/misc.o ../src/miscio.o \
42: ../src/perms.o ../src/check.o ../src/gtime.o ../src/gname.o \
43: ../src/cursor.o ../src/startup.o ../src/nfcomment.o \
44: ../src/nfabort.o
45:
46: all:
47: @echo "The utility directory isn't normally compiled"
48:
49: structsize: structsize.o
50: $(CC) structsize.o -o structsize
51:
52: nfrank: nfrank.c
53: $(CC) nfrank.c -o nfrank
54:
55: fieldzero: $(FIELDZERO)
56: $(CC) -o fieldzero $(FIELDZERO) -ltermcap
57:
58: #
59: # Administration
60: #
61:
62: rbefix: $(RBEFIX)
63: $(CC) -o rbefix $(RBEFIX) -ltermcap
64:
65: RCSIFLAGS = -r1.6.2
66: RCSOFLAGS = -r1.6.2
67:
68: freeze: $(SRC)
69: ci $(RCSIFLAGS) $?
70: co $(RCSOFLAGS) $?
71: touch freeze
72:
73: dist: ldist subdist
74: touch dist
75:
76: subdist: $(SUBDIR)
77: for i in $(SUBDIR); do \
78: (cd $$i; make ${MFLAGS} DCP=${DCP} DISTDIR=${DISTDIR} dist); done
79:
80: ldist: $(SRC)
81: ${DCP} $? ${DISTDIR}/utility/.
82: touch ldist
83:
84: clean:
85: for i in ${SUBDIR}; do (cd $$i; make clean); done;
86: rm -f *.o $(ALL) Make.errs rbefix
87:
88: ${SUBDIR}: FRC
89:
90: FRC:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.