# $NetBSD: Makefile,v 1.20 2009/03/20 13:59:49 tsutsui Exp $ NOMAN= # defined .include <bsd.own.mk> COMMON= ${.CURDIR}/../common COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} .PATH: ${COMMON} PROG= bootxx SRCS= start.S bootxx.c STRIPFLAG= BINMODE= 444 SIZE?= size OBJCOPY?= objcopy S!= cd ${.CURDIR}/../../../..; pwd LINKFLAGS= -x -N -Ttext 0 -e start CFLAGS= -Os -Wall -Werror CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare CPPFLAGS+= -D_STANDALONE # -DBOOTXX_DEBUG CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} AFLAGS= -D_LOCORE CLEANFILES+= ${PROG}.sym L= ${COMMONOBJ}/lib LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${PROG}: ${OBJS} ${LIBS} ${_MKTARGET_LINK} ${LD} ${LINKFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS} ${SIZE} ${.TARGET}.sym ${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET} .include <bsd.klinks.mk> .include <bsd.prog.mk> |