| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.34 2023/11/06 06:53:52 rin Exp $ | | 1 | # $NetBSD: Makefile,v 1.35 2023/11/06 07:02:17 rin Exp $ |
2 | | | 2 | |
3 | S= ${.CURDIR}/../../../.. | | 3 | S= ${.CURDIR}/../../../.. |
4 | | | 4 | |
5 | BASE= dosboot | | 5 | BASE= dosboot |
6 | PROG= ${BASE}.com | | 6 | PROG= ${BASE}.com |
7 | NEWVERSWHAT= "DOS Boot" | | 7 | NEWVERSWHAT= "DOS Boot" |
8 | STARTFILE= ${DOSSTART} | | 8 | STARTFILE= ${DOSSTART} |
9 | RELOC= 0x100 | | 9 | RELOC= 0x100 |
10 | | | 10 | |
11 | SRCS= main.c devopen.c exec.c exec_multiboot1.c exec_multiboot2.c | | 11 | SRCS= main.c devopen.c exec.c exec_multiboot1.c exec_multiboot2.c |
12 | | | 12 | |
13 | CPPFLAGS+= -DSLOW # for libz | | 13 | CPPFLAGS+= -DSLOW # for libz |
14 | CPPFLAGS+= -DCOMPAT_386BSD_MBRPART | | 14 | CPPFLAGS+= -DCOMPAT_386BSD_MBRPART |
| @@ -24,22 +24,25 @@ CFLAGS+= -Wall -Wmissing-prototypes -Wst | | | @@ -24,22 +24,25 @@ CFLAGS+= -Wall -Wmissing-prototypes -Wst |
24 | # XXX should go into library | | 24 | # XXX should go into library |
25 | SRCS+= getopt.c | | 25 | SRCS+= getopt.c |
26 | .PATH: ${.CURDIR}/../libsa | | 26 | .PATH: ${.CURDIR}/../libsa |
27 | | | 27 | |
28 | # XXX these should depend on the size of the image | | 28 | # XXX these should depend on the size of the image |
29 | CPPFLAGS+= -DSTACK_START=0x10000 | | 29 | CPPFLAGS+= -DSTACK_START=0x10000 |
30 | SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 | | 30 | SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 |
31 | SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes | | 31 | SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes |
32 | I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes | | 32 | I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes |
33 | | | 33 | |
34 | # DOS command line arguments are located at 0x0000. | | 34 | # DOS command line arguments are located at 0x0000. |
35 | COPTS.doscommain.c+= -fno-delete-null-pointer-checks | | 35 | COPTS.doscommain.c+= -fno-delete-null-pointer-checks |
36 | | | 36 | |
| | | 37 | # Do not page-align data segment. |
| | | 38 | LDFLAGS+= -Wl,-N |
| | | 39 | |
37 | VERSIONFILE= ${.CURDIR}/version | | 40 | VERSIONFILE= ${.CURDIR}/version |
38 | | | 41 | |
39 | .include <bsd.init.mk> | | 42 | .include <bsd.init.mk> |
40 | | | 43 | |
41 | release: check_RELEASEDIR | | 44 | release: check_RELEASEDIR |
42 | ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ | | 45 | ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ |
43 | ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc | | 46 | ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc |
44 | | | 47 | |
45 | .include "../Makefile.booters" | | 48 | .include "../Makefile.booters" |