# Copyright (c) 1987 Regents of the University of California.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley. The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
# @(#)Makefile 7.9 (Berkeley) %G%
LDT1MBSYSOPT
= -T
${MTBOOTRELOC} -x
LDTSYSOPT
= -T
${BOOTRELOC} -x
LDTOPT
= -T
${RELOC} -e _entry
-x
LIBS
= libsa.a
${DESTDIR}/lib
/libc.a
COPTS
= -O
-I.
-I..
/stand
-I..
/h
CFLAGS
= -DSTANDALONE
-DCOMPAT_42
-DTAHOE
-DRELOC
=0x
${RELOC} ${COPTS}
SRCS
= boot.c cat.c conf.c copy.c dev.c getfile.c gets.c ls.c prf.c \
srt0.c sys.c vd.c cy.c hdc.c
#all: srt0.o libsa.a ${ALL} ${SUBDIR}
all: srt0.o libsa.a
${ALL}
machdep.o
: machdep.c ..
/tahoe
/mtpr.h ..
/tahoe
/mem.h ..
/tahoe
/SYS.h
${CC} -E
${CFLAGS} machdep.c |
${AS} -o machdep.o
libsa.a
: conf.o dev.o getfile.o gets.o machdep.o prf.o printn.o sys.o \
boot
: boot.o bootsrt0.o
${LIBS}
ld ${LDTSYSOPT} bootsrt0.o boot.o
${LIBS}
dd if
=a.out of
=boot ibs
=1024 skip
=1
boot1mb
: boot.o boot1mbsrt0.o
${LIBS}
ld ${LDT1MBSYSOPT} boot1mbsrt0.o boot.o
${LIBS}
dd if
=a.out of
=boot1mb ibs
=1024 skip
=1
cat
: cat.o srt0.o
${LIBS}
ld ${LDTOPT} -o
$@
-s srt0.o cat.o
${LIBS}
copy
: copy.o srt0.o ncy.o
${LIBS}
ld ${LDTOPT} -o
$@ srt0.o copy.o ncy.o
${LIBS}
xpformat
: xpformat.o srt0.o
${LIBS}
ld ${LDTOPT} -o
$@ srt0.o xpformat.o
${LIBS}
ld ${LDTOPT} -o
$@
-s srt0.o ls.o
${LIBS}
${CC} -E
${CFLAGS} srt0.c |
${AS} -o srt0.o
${CC} -E
-DBOOTRELOC
=0x
${BOOTRELOC} -DREL
${CFLAGS} srt0.c | \
${CC} -E
-DBOOTRELOC
=0x
${MTBOOTRELOC} -DREL
${CFLAGS} srt0.c | \
${CC} -DNOBLOCK
${CFLAGS} -c ncy.c
rm -f
${ALL} *.o
*.map
*.bak a.out ncy.c libsa.a
for i in
${SUBDIR}; do
(cd
$$i; make
${MFLAGS} clean); done
for i in
${SUBDIR}; do
(cd
$$i; make
${MFLAGS} depend
); done
install -o bin
-g bin
-m
644 $$i ${DESTDIR}/stand
/$$i; \
cp
${DESTDIR}/stand
/boot
${DESTDIR}/boot
(cd
$$i; make
${MFLAGS} DESTDIR
=${DESTDIR} install) \
for i in
${SUBDIR}; do
(cd
$$i; make
${MFLAGS} tags); done
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
boot.o
: boot.c ..
/machine
/mtpr.h ..
/h
/param.h
/usr
/include/sys
/types.h
boot.o
: ..
/h
/signal.h
/usr
/include/machine
/trap.h
boot.o
: /usr
/include/machine
/machparam.h
/usr
/include/machine
/endian.h
boot.o
: ..
/h
/inode.h ..
/h
/fs.h ..
/h
/vm.h
/usr
/include/sys
/vmparam.h
boot.o
: /usr
/include/machine
/vmparam.h
/usr
/include/sys
/vmmac.h
boot.o
: /usr
/include/sys
/vmmeter.h
/usr
/include/sys
/vmsystm.h ..
/stand
/saio.h
boot.o
: ..
/stand
/saioctl.h ..
/stand
/saerrno.h ..
/h
/reboot.h
boot.o
: /usr
/include/a.out.h
/usr
/include/sys
/exec.h
conf.o
: conf.c ..
/h
/param.h
/usr
/include/sys
/types.h ..
/h
/signal.h
conf.o
: /usr
/include/machine
/trap.h
/usr
/include/machine
/machparam.h
conf.o
: /usr
/include/machine
/endian.h ..
/h
/inode.h ..
/h
/fs.h ..
/stand
/saio.h
conf.o
: ..
/stand
/saioctl.h ..
/stand
/saerrno.h
dev.o
: ..
/stand
/dev.c ..
/h
/param.h
/usr
/include/sys
/types.h ..
/h
/signal.h
dev.o
: /usr
/include/machine
/trap.h
/usr
/include/machine
/machparam.h
dev.o
: /usr
/include/machine
/endian.h ..
/h
/inode.h ..
/h
/fs.h ..
/stand
/saio.h
dev.o
: ..
/stand
/saioctl.h ..
/stand
/saerrno.h
getfile.o
: ..
/stand
/getfile.c ..
/h
/param.h
/usr
/include/sys
/types.h
getfile.o
: ..
/h
/signal.h
/usr
/include/machine
/trap.h
getfile.o
: /usr
/include/machine
/machparam.h
/usr
/include/machine
/endian.h
getfile.o
: ..
/h
/inode.h ..
/h
/fs.h ..
/stand
/saio.h ..
/stand
/saioctl.h
getfile.o
: ..
/stand
/saerrno.h
ls.o
: ..
/stand
/ls.c ..
/h
/param.h
/usr
/include/sys
/types.h ..
/h
/signal.h
ls.o
: /usr
/include/machine
/trap.h
/usr
/include/machine
/machparam.h
ls.o
: /usr
/include/machine
/endian.h ..
/h
/inode.h ..
/h
/dir.h ..
/h
/fs.h
ls.o
: ..
/stand
/saio.h ..
/stand
/saioctl.h ..
/stand
/saerrno.h
prf.o
: prf.c ..
/machine
/mtpr.h ..
/h
/param.h
/usr
/include/sys
/types.h
prf.o
: ..
/h
/signal.h
/usr
/include/machine
/trap.h
prf.o
: /usr
/include/machine
/machparam.h
/usr
/include/machine
/endian.h
srt0.o
: srt0.c ..
/machine
/mtpr.h
sys.o
: ..
/stand
/sys.c ..
/h
/param.h
/usr
/include/sys
/types.h ..
/h
/signal.h
sys.o
: /usr
/include/machine
/trap.h
/usr
/include/machine
/machparam.h
sys.o
: /usr
/include/machine
/endian.h ..
/h
/inode.h ..
/h
/fs.h ..
/h
/dir.h
sys.o
: ..
/h
/reboot.h ..
/stand
/saio.h ..
/stand
/saioctl.h ..
/stand
/saerrno.h
vd.o
: vd.c ..
/machine
/mtpr.h ..
/h
/param.h
/usr
/include/sys
/types.h
vd.o
: ..
/h
/signal.h
/usr
/include/machine
/trap.h
vd.o
: /usr
/include/machine
/machparam.h
/usr
/include/machine
/endian.h
vd.o
: ..
/h
/inode.h ..
/h
/fs.h ..
/h
/buf.h ..
/h
/disklabel.h ..
/stand
/saio.h
vd.o
: ..
/stand
/saioctl.h ..
/stand
/saerrno.h ..
/tahoevba
/vdreg.h
vd.o
: ..
/tahoevba
/vbaparam.h
cy.o
: cy.c ..
/machine
/pte.h ..
/machine
/mtpr.h ..
/h
/param.h
cy.o
: /usr
/include/sys
/types.h ..
/h
/signal.h
/usr
/include/machine
/trap.h
cy.o
: /usr
/include/machine
/machparam.h
/usr
/include/machine
/endian.h
cy.o
: ..
/h
/inode.h ..
/h
/fs.h ..
/stand
/saio.h ..
/stand
/saioctl.h
cy.o
: ..
/stand
/saerrno.h ..
/tahoevba
/cyreg.h ..
/tahoevba
/vbaparam.h
hdc.o
: hdc.c
/usr
/include/machine
/mtpr.h ..
/h
/param.h ..
/h
/types.h
hdc.o
: ..
/h
/signal.h
/usr
/include/machine
/trap.h ..
/h
/..
/machine
/machparam.h
hdc.o
: /usr
/include/machine
/endian.h ..
/h
/inode.h ..
/h
/fs.h ..
/h
/buf.h
hdc.o
: ..
/h
/ioctl.h ..
/h
/ttychars.h ..
/h
/ttydev.h ..
/h
/disklabel.h
hdc.o
: ..
/stand
/saio.h ..
/stand
/saioctl.h ..
/stand
/saerrno.h ..
/tahoevba
/hdc.h
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY