|
|
1.1 root 1: #
2: # Copyright (c) 1980, 1986, 1987 Regents of the University of California.
3: # All rights reserved.
4: #
5: # Redistribution and use in source and binary forms are permitted
6: # provided that the above copyright notice and this paragraph are
7: # duplicated in all such forms and that any documentation,
8: # advertising materials, and other materials related to such
9: # distribution and use acknowledge that the software was developed
10: # by the University of California, Berkeley. The name of the
11: # University may not be used to endorse or promote products derived
12: # from this software without specific prior written permission.
13: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14: # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15: # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16: #
17: # @(#)Makefile 7.6 (Berkeley) 7/9/88
18: #
19:
20: CFLAGS= -DLOCORE
21:
22: # source files that live in the current directory
23: SRCS= hkboot.c hpboot.c htboot.c mtboot.c raboot.c rdboot.c rlboot.c \
24: upboot.c utboot.c tmboot.c tsboot.c tuboot.c httoggle.s mttoggle.s \
25: tmtoggle.s tstoggle.s uttoggle.s
26:
27: # boot blocks that are preprocessed, then assembled
28: BOOTS= hkboot hpboot htboot mtboot raboot rdboot rlboot upboot utboot \
29: tmboot tmscpboot tsboot tuboot
30:
31: # toggle files that are assembled, but not installed
32: TOGGLES=httoggle mttoggle tmtoggle tstoggle uttoggle
33:
34: all: ${BOOTS} ${TOGGLES} noboot
35:
36: ${BOOTS}:
37: ${CC} -E ${CFLAGS} [email protected] | as
38: nm -u a.out
39: strip a.out
40: dd if=a.out bs=32 skip=1 of=b.out
41: dd if=b.out of=$@ conv=sync
42: rm b.out
43:
44: ${TOGGLES}:
45: as [email protected]
46: nm -u a.out
47: strip a.out
48: dd if=a.out bs=32 skip=1 of=$@
49:
50: noboot:
51: echo | dd of=noboot conv=sync
52:
53: clean:
54: rm -f a.out b.out ${BOOTS} ${TOGGLES} noboot
55:
56: install:
57: install -o bin -g bin -m 444 ${BOOTS} ${DESTDIR}/usr/mdec
58: rm -f ${DESTDIR}/usr/mdec/mboot ${DESTDIR}/usr/mdec/uboot
59: ln ${DESTDIR}/usr/mdec/htboot ${DESTDIR}/usr/mdec/mboot
60: ln ${DESTDIR}/usr/mdec/hpboot ${DESTDIR}/usr/mdec/uboot
61:
62: depend:
63: mkdep -p ${CFLAGS} ${SRCS}
64:
65: # DO NOT DELETE THIS LINE -- mkdep uses it.
66: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
67:
68: hkboot: hkboot.c /usr/include/sys/disklabel.h
69: hpboot: hpboot.c /usr/include/sys/disklabel.h
70: htboot: htboot.c
71: mtboot: mtboot.c
72: raboot: raboot.c /usr/include/sys/disklabel.h
73: rlboot: rlboot.c /usr/include/sys/disklabel.h
74: upboot: upboot.c /usr/include/sys/disklabel.h
75: utboot: utboot.c
76: tmboot: tmboot.c
77: tsboot: tsboot.c
78: tuboot: tuboot.c
79: httoggle: httoggle.s
80: mttoggle: mttoggle.s
81: tmtoggle: tmtoggle.s
82: tstoggle: tstoggle.s
83: uttoggle: uttoggle.s
84:
85: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.