NetBSD/sys/arch/bebox/stand/boot/Makefile

70 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2000/07/21 21:34:27 jdolecek Exp $
S= ${.CURDIR}/../../../..
BOOTPROG= boot
NEWVERSWHAT= "BOOT"
ASRCS+= srt0.s
CSRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c
CSRCS+= fd.c filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
CSRCS+= kbd.c ns16550.c vers.c vreset.c vga.c video.c
CLEANFILES+= vers.c ${BOOTPROG}
CPPFLAGS= -I${.CURDIR} -I${.CURDIR}/../elf2pef -I${.CURDIR}/../../..
CPPFLAGS+= -I${S} -I${S}/lib/libsa
CPPFLAGS+= -D_STANDALONE -DDBMONITOR -DRELOC=${RELOC}
CPPFLAGS+= -DUSE_SCAN
#CPPFLAGS+= -DCONS_BE
CPPFLAGS+= -DCONS_VGA
#CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3F8
AOBJS= ${ASRCS:.s=.o}
COBJS= ${CSRCS:.c=.o}
OBJS= ${AOBJS} ${COBJS}
AFLAGS= -x assembler-with-cpp -traditional-cpp
MKMAN= no
STRIPFLAG=
BINMODE= 444
RELOC= 0x700000
.BEGIN:
@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
.NOPATH: machine powerpc
CLEANFILES+= machine powerpc
### find out what to use for libkern
KERN_AS= library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
### find out what to use for libz
Z_AS= library
.include "${S}/lib/libz/Makefile.inc"
LIBZ= ${ZLIB}
### find out what to use for libsa
SA_AS= library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
.PHONY: vers.c
vers.c: version
sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version "bebox" ${NEWVERSWHAT}
realall: ${BOOTPROG}
${BOOTPROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${LD} -o ${BOOTPROG} -s -N -T ld.script -Ttext ${RELOC} ${OBJS} \
${LIBSA} ${LIBZ} ${LIBKERN} vers.o
remake: cleanobjs all
cleanobjs:
rm -f ${OBJS}
.include <bsd.prog.mk>