|
|
1.1 root 1: # $Header: /usr/lib/lisp/RCS/Makefile,v 1.9 83/08/15 22:28:27 jkf Exp $
2: # Makefile for /usr/lib/lisp
3: # this directory contains the lisp coded portion of the standard
4: # lisp system and other useful lisp programs.
5: # The command 'make all' insures that all source files are compiled
6: # The command 'make install' installs these files in the standard
7: # place (/usr/lib/lisp). This is only useful of course if the current
8: # directory is not /usr/lib/lisp.
9: #
10: .SUFFIXES: .l.s.o
11:
12: .l.s:
13: ${Liszt} -xaqS $*
14: .l.o:
15: ${Liszt} -xaq $*
16:
17: #--- Default paths and programs:
18: LibDir = /usr/lib/lisp
19: CopyTo = /dev/null
20: Liszt = liszt
21:
22:
23: #--- ReqSrc: required source for building lisp system
24: #
25: ReqSrc = charmac.l common0.l common1.l common2.l common3.l toplevel.l \
26: syntax.l macros.l vector.l array.l pp.l format.l version.l \
27: tpl.l fcninfo.l
28:
29:
30: #--- OtherSrc: other lisp coded library files
31: OtherSrc = machacks.l loop.l ucifnc.l ucido.l jkfmacs.l trace.l\
32: syscall.l \
33: cmumacs.l cmufncs.l fix.l step.l cmufile.l cmutpl.l cmuedit.l \
34: structini.l struct.l prof.l hash.l flavorm.l lmhacks.l
35:
36: LocalSrc = describe.l flavors.l vanilla.l
37:
38: ReqObj = charmac.o common0.o common1.o common2.o common3.o toplevel.o \
39: syntax.o macros.o vector.o array.o pp.o format.o version.o \
40: tpl.o fcninfo.o
41:
42: OtherObj = machacks.o loop.o ucifnc.o ucido.o jkfmacs.o trace.o\
43: syscall.o\
44: cmumacs.o cmufncs.o fix.o step.o cmufile.o cmutpl.o cmuedit.o \
45: struct.o prof.o hash.o flavorm.o lmhacks.o
46:
47: LocalObj = describe.o flavors.o vanilla.o
48:
49: #--- AllSrc: all source files required for lisp system
50: # LocalSrc isn't included!
51: AllSrc = Makefile ReadMe buildlisp.l cmuenv.l fixit.ref \
52: ${ReqSrc} ${OtherSrc} autorun/vax autorun/unisoft autorun/sun4.2
53:
54: AllObj = ${ReqObj} ${OtherObj}
55:
56: all: ${AllObj}
57:
58: local-all: ${AllObj} ${LocalObj}
59:
60: required: ${ReqObj}
61:
62: DotSSrc = charmac.s common0.s common1.s\
63: common2.s common3.s toplevel.s syntax.s macros.s\
64: vector.s array.s pp.s format.s\
65: version.s tpl.s fcninfo.s
66:
67: xtra: ${DotSSrc}
68:
69: fromasm:
70: for i in *.s; do echo $$i; ${LibDir}/as $$i; done
71: # rm -f *.s
72:
73:
74: ## defstruct should be compiled with a compiled version of itself.
75: ## When a compiled form doesn't exist, structini.l can be used to
76: ## build a struct.o which is close but not exactly what you want.
77: ## Recompiling struct will use struct.o and create the correct struct.o
78: ##
79: struct-again:
80: ${Liszt} -xaq struct
81:
82: ## this will only work if you have an up to date version of ctags which
83: ## understands lisp files.
84:
85: tags: ${AllSrc}
86: ctags ${AllSrc}
87:
88: sources: ${AllSrc}
89:
90: xref:
91: lxref ${AllSrc} > xref
92:
93: echofiles:
94: @echo ${ReqSrc} ${OtherSrc}
95:
96: echorequired:
97: @echo ${ReqSrc}
98:
99: # updatemachine will vcp all objects and source to machine
100: # named with 'mach' on the command line
101:
102: updatemachine: ${AllSrc} ${AllObj}
103: -vcp -wfq /usr/ucb/lisp /usr/ucb/liszt ${mach}:.
104: -vcp -wfq ${AllSrc} ${mach}:/usr/lib/lisp
105: -vcp -wfq ${AllObj} ${mach}:/usr/lib/lisp
106:
107: copysource: ${AllSrc}
108: (tar cf - ${AllSrc} | (cd ${CopyTo} ; tar xf -))
109:
110: copyobjects: ${AllObj}
111: (tar cf - ${AllObj} | (cd ${CopyTo} ; tar xf -))
112:
113: scriptcatall: ${AllSrc}
114: @(X=`pwd` ; cd ${CdTo}; scriptcat $$X lisplib ${AllSrc})
115:
116: scriptcatxtra:
117: @(X=`pwd` ; cd ${CdTo}; scriptcat $$X lisplib ${DotSSrc})
118:
119: as:
120: @echo "Grabbing as from /bin"
121: cp /bin/as as
122:
123: nld:
124: @echo "Grabbing nld from /bin"
125: cp /bin/ld nld
126:
127: cleanreq:
128: -rm -f ${ReqObj}
129:
130: cleanall:
131: -rm -f ${AllObj}
132:
133: cleanother:
134: -rm -f ${OtherObj}
135:
136: clean:
137: -rm -f *.o
138: -rm -f *.blat
139: -rm -f *.x
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.