Files
netbsd/sys/arch/i386/stand/dosboot/Makefile
2015-10-15 10:25:28 +02:00

47 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.28 2014/01/15 22:25:22 joerg Exp $
S= ${.CURDIR}/../../../..
BASE= dosboot
PROG= ${BASE}.com
NOMAN= # defined
NEWVERSWHAT= "DOS Boot"
STARTFILE= ${DOSSTART}
RELOC= 0x100
SRCS= main.c devopen.c exec.c
CPPFLAGS+= -DSLOW # for libz
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
CPPFLAGS+= -DXMS
CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
#uncomment if there are problems with memory detection
#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
# XXX should go into library
SRCS+= getopt.c
.PATH: ${.CURDIR}/../libsa
# XXX these should depend on the size of the image
CPPFLAGS+= -DSTACK_START=0x10000
SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
VERSIONFILE= ${.CURDIR}/version
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
.include <bsd.own.mk>
release: check_RELEASEDIR
${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
${RELEASEDIR}/${MACHINE}/installation/misc
.include "../Makefile.booters"