NetBSD/sys/arch/pc532/stand/Makefile.buildboot

51 lines
1.1 KiB
Makefile

# $NetBSD: Makefile.buildboot,v 1.3 2000/07/21 21:54:54 jdolecek Exp $
S= ${.CURDIR}/../../../..
.PATH: ${.CURDIR}/../common
SRCS= ${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE} vers.c
MKMAN= no
STRIP=
BINMODE= 444
CLEANFILES+= ${PROG}.sym ${PROG}
CPPFLAGS+= -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
CFLAGS= -O3 -fno-inline
#CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format
# no lint here (yet?)
lint:
${PROG}: ${PROG}.sym
cp ${PROG}.sym ${PROG}
strip ${PROG}
.include <bsd.prog.mk>
### 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}
.PHONY: vers.c
vers.c: version
sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version "pc532" ${NEWVERSWHAT}
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${LD} -Ttext ${RELOC} -z -e start -o ${PROG}.sym \
${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
@size ${PROG}.sym