NetBSD/sys/arch/pc532/stand/Makefile

99 lines
2.0 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.8 1995/11/30 00:59:05 jtc Exp $
1994-10-26 11:23:50 +03:00
# @(#)Makefile 8.1 (Berkeley) 6/10/93
1994-05-30 23:58:42 +04:00
#DESTDIR=
1994-07-25 00:29:45 +04:00
STANDDIR=${DESTDIR}/stand
# load at 0x400000 - 30 * 1024 - 0x10000
# that way the boot code will be at the correct
# address if the floppy image is started from memory
1994-05-30 23:58:42 +04:00
# NOTE: alloc() function takes memory after _end
RELOC= 3E8800
1994-05-30 23:58:42 +04:00
CONS= -DSCNCONSOLE
DEFS= -DSTANDALONE ${CONS}
CFLAGS= -O ${INCPATH} ${DEFS} -fwritable-strings
SRCS= cons.c devopen.c scn.c scsi_low.c scsi_hi.c \
conf.c prf.c tgets.c machdep.c sd.c rd.c filesystem.c
1994-05-30 23:58:42 +04:00
1995-09-26 23:15:57 +03:00
S= ${.CURDIR}/../../..
SAREL=
KERNREL=
1994-05-30 23:58:42 +04:00
.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH: ${S}/stand ${S}/lib/libsa
INCPATH=-I${.CURDIR} -I${.CURDIR}/../.. -I${S} -I${S}/lib/libsa
1995-09-26 23:15:57 +03:00
### find out what to use for libs
.include "../../../lib/libkern/Makefile.inc"
1994-05-30 23:58:42 +04:00
LIBKERN= ${KERNLIB}
1995-09-26 23:15:57 +03:00
NO_NET=
.include "../../../lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
1994-05-30 23:58:42 +04:00
#LIBS= ${LIBSA} ${.OBJDIR}/libdrive.a \
# ${LIBKERN} ${LIBSA} ${LIBKERN}
1994-05-30 23:58:42 +04:00
LIBS= ${LIBSA} ${.OBJDIR}/libdrive.a \
${LIBKERN} ${LIBSA}
1994-05-30 23:58:42 +04:00
BOOTS= boot zboot.o
1994-05-30 23:58:42 +04:00
ALL= ${BOOTS}
all: ${ALL}
${BOOTS}: ${LIBS}
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
${.OBJDIR}/libdrive.a: ${OBJS}
ar crv $@ $?
ranlib $@
# depend on DEFS
devopen.o machdep.o srt0.o: Makefile
cons.o: Makefile
# startups
srt0.o: ${.CURDIR}/srt0.s
cpp ${INCPATH} ${DEFS} ${.CURDIR}/srt0.s | as -o srt0.o
# new boot
boot: boot.o srt0.o ${LIBS}
ld -z -T ${RELOC} -e begin srt0.o boot.o ${LIBS} -o $@
@size boot
zboot.o: inflate.o
ld -r srt0.o inflate.o $(LIBS) -o zboot.o
1994-05-30 23:58:42 +04:00
# new boot user mode test
TESTBOOT= boot.o test.o $(SC) ${LIBS}
# objects from regular libc;
SC= cerror.o syscall.o malloc.o sbrk.o getpagesize.o
testboot: $(TESTBOOT)
ld -o testboot /usr/lib/crt0.o $(TESTBOOT) ${LIBS} -o $@
$(SC): /usr/lib/libc.a
ar x /usr/lib/libc.a $(SC)
# utilities
install: ${ALL}
cp ${ALL} ${DESTDIR}/usr/mdec
1994-07-25 00:29:45 +04:00
1994-05-30 23:58:42 +04:00
.include <bsd.dep.mk>
.include <bsd.obj.mk>
1994-12-16 21:00:36 +03:00
.include <bsd.subdir.mk>
1994-05-30 23:58:42 +04:00
FRC:
1995-09-26 23:15:57 +03:00
# clean ...
clean::
rm -f ${ALL} ${.OBJDIR}/libdrive.a ${OBJS} boot.o srt0.o inflate.o
cleandir: clean