3c550524b5
disabled by -D) from the output of newvers_stand.sh. Change -D to the inverted logic, so that it adds the date to bootprog_rev in (). Change all platforms accordingly. -D is added if MKREPRO is not yes and wasn't present before. Platforms that didn't use -D don't depend on MKREPRO now either.
69 lines
1.5 KiB
Makefile
69 lines
1.5 KiB
Makefile
# $NetBSD: Makefile.booters,v 1.12 2011/01/22 19:19:20 joerg Exp $
|
|
|
|
S?= ${.CURDIR}/../../../..
|
|
MDEC_DIR?= /usr/mdec
|
|
RELOC?= 0x3F0000
|
|
COPTS?= -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes
|
|
DEFS?=
|
|
STRIPFLAG?=
|
|
|
|
NOMAN= # defined
|
|
NOMAN= # defined
|
|
NOLINT= # defined
|
|
NOLINT= # defined
|
|
NOPIC= # defined
|
|
NOPROFILE=# defined
|
|
NOLINT=# defined
|
|
|
|
INCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
|
|
-I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa
|
|
CFLAGS= -nostdinc -ffreestanding
|
|
CPPFLAGS= -D_STANDALONE ${INCPATH} ${DEFS}
|
|
BINDIR= ${MDEC_DIR}
|
|
|
|
# XXX SHOULD NOT NEED TO DEFINE THESE!
|
|
LIBCRT0=
|
|
LIBC=
|
|
LIBCRTBEGIN=
|
|
LIBCRTEND=
|
|
|
|
.if exists(${.CURDIR}/version)
|
|
SRCS+= vers.c
|
|
CLEANFILES+= vers.c
|
|
|
|
vers.c: version
|
|
${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version "mvmeppc"
|
|
.endif
|
|
|
|
.include <bsd.klinks.mk>
|
|
|
|
.if defined(LIB)
|
|
|
|
lib${LIB}.a:: ${OBJS}
|
|
|
|
.else
|
|
|
|
PROGDEPENDS?= ${SRTOBJ} ${OBJS} ${LIBS}
|
|
PROGLINKOBJS?= ${PROGDEPENDS}
|
|
|
|
${PROG}: machine powerpc ${PROGDEPENDS}
|
|
${LD} -N -Ttext ${RELOC} -o $@ ${PROGLINKOBJS}
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB_SA_DIR= ${.CURDIR}/../libsa
|
|
LIBSA_DIR!= cd ${LIB_SA_DIR} && ${PRINTOBJDIR}
|
|
LIBSA= ${LIBSA_DIR}/lib/sa/libsa.a
|
|
LIBKERN= ${LIBSA_DIR}/lib/kern/libkern.a
|
|
|
|
#WRTVID_BOOT_DIR= ${.CURDIR}/../wrtvid
|
|
#WRTVID_DIR!= cd ${WRTVID_BOOT_DIR} && ${PRINTOBJDIR}
|
|
#WRTVID=${WRTVID_DIR}/wrtvid
|
|
#
|
|
#.PHONY: ${WRTVID}
|
|
#${WRTVID}:
|
|
# @echo making sure the wrtvid is up to date...
|
|
# @(cd ${WRTVID_BOOT_DIR}; ${MAKE} dependall)
|
|
#
|
|
.endif
|