1 # $NetBSD: Makefile,v 1.24 2008/10/20 03:02:07 christos Exp $
3 S
= ${.CURDIR
}/..
/..
/..
/..
8 NEWVERSWHAT
= "DOS Boot"
12 SRCS
= main.c devopen.c exec.c
14 CPPFLAGS
+= -DSLOW
# for libz
15 CPPFLAGS
+= -DCOMPAT_386BSD_MBRPART
17 #uncomment if there are problems with memory detection
18 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
20 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
21 CFLAGS
+= -Wall
-Wmissing-prototypes
-Wstrict-prototypes
-Wno-main
23 # XXX should go into library
25 .PATH
: ${.CURDIR
}/..
/libsa
27 # XXX these should depend on the size of the image
28 CPPFLAGS
+= -DSTACK_START
=0x10000
29 SAMISCCPPFLAGS
+= -DHEAP_START
=0x20000 -DHEAP_LIMIT
=0x50000
30 SAMISCMAKEFLAGS
= SA_USE_CREAD
=yes SA_INCLUDE_NET
=no
31 I386MISCMAKEFLAGS
= I386_INCLUDE_DOS
=yes
33 VERSIONFILE
= ${.CURDIR
}/version
41 release
: check_RELEASEDIR
42 ${HOST_INSTALL_FILE} -m
${BINMODE} dosboot.com \
43 ${RELEASEDIR}/${MACHINE}/installation
/misc
45 .
include "../Makefile.booters"