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