Makefile revision 1.22
1#	$NetBSD: Makefile,v 1.22 2003/02/01 14:48:17 dsl Exp $
2
3S=	${.CURDIR}/../../../../
4
5BASE= dosboot
6PROG= ${BASE}.com
7NOMAN=	# defined
8NEWVERSWHAT=	"DOS Boot"
9STARTFILE=	${DOSSTART}
10RELOC=		0x100
11
12SRCS= main.c devopen.c exec.c
13
14CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
15CPPFLAGS+= -DXMS
16#uncomment if there are problems with memory detection
17#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
18
19#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
20CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
21
22# XXX should go into library
23SRCS+= getopt.c
24.PATH: ${.CURDIR}/../libsa
25
26# XXX these should depend on the size of the image
27CPPFLAGS+= -DSTACK_START=0x10000
28SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
29SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no
30I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
31
32VERSIONFILE= ${.CURDIR}/version
33
34.include <bsd.own.mk>
35
36release: check_RELEASEDIR
37	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
38	    ${RELEASEDIR}/${MACHINE}/installation/misc
39
40.include "../Makefile.booters"
41