Makefile revision 1.27
1# $NetBSD: Makefile,v 1.27 2011/12/25 06:09:09 tsutsui 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 20CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 21#uncomment if there are problems with memory detection 22#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 23 24#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 25CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 26 27# XXX should go into library 28SRCS+= getopt.c 29.PATH: ${.CURDIR}/../libsa 30 31# XXX these should depend on the size of the image 32CPPFLAGS+= -DSTACK_START=0x10000 33SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 34SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes 35I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes 36 37VERSIONFILE= ${.CURDIR}/version 38 39PIE_CFLAGS= 40PIE_LDFLAGS= 41PIE_AFLAGS= 42 43.include <bsd.own.mk> 44 45release: check_RELEASEDIR 46 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 47 ${RELEASEDIR}/${MACHINE}/installation/misc 48 49.include "../Makefile.booters" 50