NetBSD/sys/arch/next68k/stand/boot/Makefile

85 lines
2.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.6 1999/02/13 02:54:48 lukem Exp $
1998-06-09 11:53:05 +04:00
S= ${.CURDIR}/../../../..
### 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
.include "${S}/lib/libsa/Makefile.inc"
#LIBSA= ${SALIB}
RELOC= 4380000
# XXX make defs arch-indep.
INCLUDES+= -I${.CURDIR} -I${.CURDIR}/obj.${MACHINE} -I${S}/arch -I${S} -I${S}/lib/libsa -I${S}/lib/libkern
DEFS+= -D_STANDALONE -DMC68040 -DSUPPORT_BOOTP -DSUPPORT_DHCP -DDEBUG # -DEN_DEBUG -DNETIF_DEBUG # -DSD_DEBUG -DSCSI_DEBUG
SAMISCCPPFLAGS= -DSUPPORT_DHCP -DSUPPORT_BOOTP -DINSECURE # -DBOOTP_DEBUG -DETHER_DEBUG -DNET_DEBUG # -DNETIF_DEBUG -DNFS_DEBUG -DARP_DEBUG
WARNS=1
HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
.if (${HAVE_GCC28} != "")
CWARNFLAGS+= -Wno-main
1998-08-29 02:50:54 +04:00
.endif
1998-06-09 11:53:05 +04:00
CFLAGS+= -nostdinc ${INCLUDES} ${DEFS}
LIBCRT0=
PROG= boot
SRCS= boot.c machdep.c conf.c devopen.c rtc.c sd.c scsi.c en.c dev_net.c
# @@@ dev_net.c should really be in libsa, but it doesn't
# declare ip_convertaddr correctly, so I put it here _temporarily_.
MKMAN= no
1998-06-09 11:53:05 +04:00
BINDIR= /usr/mdec
#LIBS= ${SALIB} ${KERNLIB} ${ZLIB}
LIBS= ${SALIB} ${KERNLIB}
#OBJS+= dev_net.o
${PROG}: links srt0.o ${OBJS} vers.o ${LIBS}
${LD} -N -Ttext ${RELOC} -e start srt0.o ${OBJS} ${LIBS} vers.o -o $@
@${SIZE} $@
1998-06-09 11:53:05 +04:00
# this looks useful to me ... let's see when it will be an official part
# of libsa
#dev_net.o : ${S}/lib/libsa/dev_net.c
# ${COMPILE.c} -DSUPPORT_BOOTP ${.IMPSRC}
# startup
srt0.o: ${.CURDIR}/srt0.s
${CC} -m68040 ${INCPATH} ${DEFS} -c ${.CURDIR}/srt0.s
vers.c: newvers
newvers:
sh ${.CURDIR}/newvers.sh
${CC} ${CFLAGS} -c vers.c
#installboot: ${.CURDIR}/installboot.sh
# @rm -f installboot
# cp -p ${.CURDIR}/installboot.sh installboot
# utilities
links:
rm -f machine
ln -s ${S}/arch/${MACHINE}/include machine
rm -f ${MACHINE_ARCH}
ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
rm -f limits.h
ln -s machine/limits.h limits.h
clean:
rm -f *.o errs core make.out
rm -f a.out boot cat ls
rm -f machine ${MACHINE_ARCH} limits.h
.include <bsd.prog.mk>