|
|
1.1 root 1: # Makefile 4.6 83/07/02
2: #
3: # The system has two monitoring schemes, utilizing either ``prof''
4: # or ``gprof''. DFLMON determines the default profiler; mon.o
5: # specifies that ``prof'' is the default, gmon.o specifies that
6: # ``gprof'' is the default.
7: #
8: # Machine dependent routines are located in a subtree which parallels
9: # the top directories. This subtree is identified by the machine name.
10: #
11: # Compatibility routines are kept in directories with a prefixing
12: # ``compat'' (so they all sort together).
13: #
14: # The C run-time startup code is always machine dependent and expected
15: # to be located in ${MACHINE}/csu
16: #
17: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
18: DESTDIR=
19: INSTALL=install
20: DFLMON= mon.o
21: MACHINE=tahoe
22: # To be used when running in 4.2
23: COMPAT= compat-4.1 compat-sys5
24: # When the network is here, use this:
25: #COMPAT= compat-4.1
26: ALL= gen inet net stdio ${MACHINE} ${COMPAT}
27:
28: all: libc.a libc_p.a libsa.a
29:
30: libc.a libc_p.a: ${MACHINE}/csu ${ALL}
31: -mkdir tmp
32: for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done
33: ls tmp/*.o | sort -t/ +1 > t1
34: ar cr libc.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
35: ar ma flsbuf.o libc.a exit.o
36: rm -f t1 tmp/*
37: for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done
38: ls tmp/*.o | sort -t/ +1 > t1
39: ar cr libc_p.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
40: ar ma flsbuf.o libc_p.a exit.o
41: rm -rf t1 tmp
42:
43: libsa.a:
44: cd gen; make ${MFLAGS} ${MAKEPARAM} libsa
45:
46: ${MACHINE}/csu ${ALL}: FRC
47: cd $@; make ${MFLAGS} ${MAKEPARAM}
48:
49: FRC:
50:
51: clean:
52: for i in ${MACHINE}/csu ${ALL}; do (cd $$i; make ${MFLAGS} clean); done
53: rm -f t1 tmp/*.o
54: -rmdir tmp
55: rm -f Makefile
56:
57: install: all
58: ${INSTALL} libc.a ${DESTDIR}/lib/libc.a
59: ranlib ${DESTDIR}/lib/libc.a
60: ${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a
61: ranlib ${DESTDIR}/usr/lib/libc_p.a
62: ${INSTALL} gen/libsa.a ${DESTDIR}/usr/lib/libsa.a
63: cd ${MACHINE}/csu; make ${MAKEPARAM} install
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.