|
|
1.1 root 1: # CKUBS2.MAK, Sat Nov 7 22:10:40 1992
2: #
3: # Abbreviated version for 2.10 / 2.11 BSD, which chokes on full-size makefile
4: # because "Make: out of memory".
5: #
6: # Instructions:
7: # 1. Make sure there are no other files called "makefile" or "Makefile"
8: # in the same directory.
9: # 2. Change the name of this file to "makefile".
10: # 3. Read below about the strings file.
11: # 4. "make bsd211"
12: # 5. If you are not on a system with /usr/lib/ctimed (2.10BSD for example),
13: # type "make bsd210" (which will compile cku2tm.c into 'ctimed')
14: # and then install 'ctimed' in the right place (default is /usr/lib).
15: #
16: # Author: Frank da Cruz, Columbia University Center for Computing Activities
17: # 612 West 115th Street, New York, NY 10025, USA. Phone (212) 854-5126.
18: # e-mail: [email protected], [email protected], or [email protected].
19: # BSD 2.10/2.11 specifics by Steven M Schultz, [email protected].
20: #
21: # Modified 4 July 1992 to reshuffle overlays (because the first one got too
22: # big) and to improve the method of defining the string file. fdc.
23: # And again 23 Aug 1992. fdc.
24: # And again 06 Sep 1992 to work around ckudia.c blowing up optimizers. sms.
25: # And again 09 Sep 1992 to incorporate cku2tm.c and new ckustr.c. sms.
26: # & again 19 Sep 92 to add -DMINIDIAL to reduce size of DIAL module. fdc.
27: # & again 7 Nov 92 because two of the segments got too big. fdc.
28: #
29: ###########################################################################
30: #
31: # 2.10BSD and 2.11BSD (the latter to a larger extent) are the same as 4.3BSD
32: # but without a large address space.
33: #
34: # A string extraction method is used to put approx. 10kb of strings into
35: # a file. The module ckustr.c needs to find this file when C-Kermit runs.
36: # The pathname where this file will reside is defined below (change it if
37: # necessary). After make is finished, the file kermit5.sr must be moved
38: # to where ckustr.c has been told to look for it.
39: #
40: # For testing purposes, you can define an environment variable KSTR to
41: # override the built-in pathname, for example:
42: #
43: # setenv KSTR `pwd`/kermit5.sr
44: #
45: # If the resulting wermit program sprews garbage all over your screen, it's
46: # because it is reading the wrong strings file.
47: #
48: # If the resulting wermit program doesn't run at all because UNIX says it
49: # is out of memory, it's most likely because one of the overlays is too big.
50: # The maximum size is 48K (49152 bytes) for the base segment and 15K (16384
51: # bytes) for each overlay. For example:
52: #
53: # % size wermit
54: # 48000 + 23702 + 31064
55: # 16512,15936,15488,11072
56: #
57: # This shows that the first overlay is too large. The cure is move the
58: # smallest module from the first overlay into the last (smallest) overlay.
59: # Try hard not to mess with the selection of modules in the root segment.
60: #
61: ###########################################################################
62: #
63: # Compile and Link variables:
64: #
65: # EXT is the extension (file type) for object files, normally o.
66: # DFLAGS is the set of options and flags used for modules that can be
67: # processed by the optimizer.
68: # EFLAGS is the same as DFLAGS except that the -O is removed.
69: # Use it for modules that blow up the optimizer.
70: #
71: EXT=o
72: DFLAGS="-O -DBSD43 -DLCKDIR -DNODEBUG -DNOTLOG -DMINIDIAL \
73: -DNOCSETS -DNOHELP -DNOSCRIPT -DNOSPL -DNOXMIT -DNOSETBUF $(KFLAGS) \
74: -DSTR_FILE=\\\"/usr/local/lib/kermit5.sr\\\" -Dgethostname=gethnam \
75: -DSTR_CTIMED=\\\"/usr/lib/ctimed\\\""
76: EFLAGS=-DBSD43 -DLCKDIR -DNODEBUG -DNOTLOG -DMINIDIAL \
77: -DNOCSETS -DNOHELP -DNOSCRIPT -DNOSPL -DNOXMIT -DNOSETBUF $(KFLAGS) \
78: -DSTR_FILE=\\\"/usr/local/lib/kermit5.sr\\\" -Dgethostname=gethnam \
79: -DSTR_CTIMED=\\\"/usr/lib/ctimed\\\"
80: LNKFLAGS= -i
81: CC=./ckustr.sed
82: CC2=cc
83: #
84: ###########################################################################
85: #
86: # Dependencies Section, including wermit overlay structure.
87:
88: wermit: ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
89: ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) \
90: ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
91: ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
92: ckuscr.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
93: ckuusy.$(EXT) ckustr.o strings.o
94: ar x /lib/libc.a getpwent.o ndbm.o
95: $(CC2) $(LNKFLAGS) -o wermit \
96: ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
97: ckcfn3.$(EXT) \
98: -Z ckcmai.$(EXT) ckuusr.$(EXT) ckucmd.$(EXT) \
99: -Z ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckuus6.$(EXT) \
100: -Z ckuus7.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) \
101: ckuusy.$(EXT) \
102: -Z ckuus2.$(EXT) ckuusx.$(EXT) ckucon.$(EXT) \
103: ckuus3.$(EXT) getpwent.o ndbm.o \
104: -Y ckustr.o strings.o $(LIBS)
105:
106: strings.o: strings
107: xstr
108: cc -c xs.c
109: mv -f xs.o strings.o
110: rm -f xs.c
111:
112: ###########################################################################
113: # Dependencies for each module...
114: #
115: ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
116:
117: ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcasc.h
118:
119: ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
120: ./wart ckcpro.w ckcpro.c
121:
122: ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
123: ckuxla.h
124:
125: ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
126:
127: ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
128: ckuxla.h
129:
130: ckuxla.$(EXT): ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
131:
132: ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
133: ckcasc.h ckcnet.h
134:
135: ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
136: ckcasc.h
137:
138: ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
139: ckcasc.h ckcnet.h
140:
141: ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
142: ckcasc.h ckcnet.h
143:
144: ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
145:
146: ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
147:
148: ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
149: ckcasc.h ckcnet.h
150:
151: ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h
152:
153: ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h
154:
155: ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
156:
157: ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h
158:
159: ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h
160:
161: ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h
162:
163: ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h
164:
165: wart: ckwart.$(EXT)
166: $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
167:
168: ckcmdb.$(EXT): ckcmdb.c ckcdeb.h
169:
170: ckwart.$(EXT): ckwart.c
171:
172: ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
173: $(CC) CFLAGS=${EFLAGS} -c ckudia.c
174:
175: ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h
176:
177: #2.11BSD
178: #
179: bsd211:
180: @echo "Making C-Kermit 5A for 2.10/2.11BSD with overlays..."
181: @echo -n "Be sure to install kermit5.sr with the same pathname"
182: @echo " specified in ckustr.c!"
183: chmod +x ckustr.sed
184: make wermit CFLAGS=${DFLAGS}
185:
186: #2.10BSD
187: #
188: bsd210:
189: @echo -n "Be sure to install ctimed with the same pathname"
190: @echo " specified in ckustr.c for STR_CTIMED!"
191: make bsd211 ctimed
192:
193: ctimed:
194: $(CC2) $(DFLAGS) $(LNKFLAGS) -o ctimed cku2tm.c
195:
196: #Clean up intermediate and object files
197: clean:
198: @echo 'Removing intermediate files...'
199: -rm -f *.$(EXT) ckcpro.c wart strings kermit5.sr ctimed
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.