Switch remaining platforms to modern CPP for assembler.diff -r1.219 -r1.220 src/UPDATING
(joerg)
--- src/UPDATING 2011/01/17 18:11:09 1.219
+++ src/UPDATING 2011/01/21 15:59:04 1.220
@@ -1,41 +1,35 @@ | @@ -1,41 +1,35 @@ | |||
1 | $NetBSD: UPDATING,v 1.219 2011/01/17 18:11:09 joerg Exp $ | 1 | $NetBSD: UPDATING,v 1.220 2011/01/21 15:59:04 joerg Exp $ | |
2 | 2 | |||
3 | This file (UPDATING) is intended to be a brief reference to recent | 3 | This file (UPDATING) is intended to be a brief reference to recent | |
4 | changes that might cause problems in the build process, and a guide for | 4 | changes that might cause problems in the build process, and a guide for | |
5 | what to do if something doesn't work. | 5 | what to do if something doesn't work. | |
6 | 6 | |||
7 | For a more detailed description of the recommended way to build NetBSD | 7 | For a more detailed description of the recommended way to build NetBSD | |
8 | using build.sh, see the BUILDING file. | 8 | using build.sh, see the BUILDING file. | |
9 | 9 | |||
10 | Note that much of the advice in this UPDATING file was written before | 10 | Note that much of the advice in this UPDATING file was written before | |
11 | build.sh existed. Nevertheless, the advice here may be useful for | 11 | build.sh existed. Nevertheless, the advice here may be useful for | |
12 | working around specific problems with build.sh. | 12 | working around specific problems with build.sh. | |
13 | 13 | |||
14 | See also: BUILDING, build.sh, Makefile. | 14 | See also: BUILDING, build.sh, Makefile. | |
15 | 15 | |||
16 | Recent changes: | 16 | Recent changes: | |
17 | ^^^^^^^^^^^^^^^ | 17 | ^^^^^^^^^^^^^^^ | |
18 | 20110117: | 18 | 20110121: | |
19 | Assembler files on the following platforms no longer use -tradition-cpp: | 19 | Assembler files no longer use -tradition-cpp. This can break | |
20 | - Alpha, | 20 | the build of individual parts of the tree. This is handled | |
21 | - AMD64, | 21 | correctly by build.sh. Manual builds have to update /usr/share/mk | |
22 | - i386, | 22 | and re-run config(1) for any kernel configurations as needed. | |
23 | - SPARC, | |||
24 | - SPARC64. | |||
25 | This can break the build of individual parts of the tree. This is | |||
26 | handled correctly by build.sh. Manual builds have to update | |||
27 | /usr/share/mk and re-run config(1) for any kernel configurations as | |||
28 | needed. | |||
29 | 23 | |||
30 | 20101217: | 24 | 20101217: | |
31 | The tcpdump(8) program was changed to drop privileges and chroot(2) | 25 | The tcpdump(8) program was changed to drop privileges and chroot(2) | |
32 | by default. It may be necessary to manually update passwd(5) and | 26 | by default. It may be necessary to manually update passwd(5) and | |
33 | group(5) in order to make the program work with existing setups. | 27 | group(5) in order to make the program work with existing setups. | |
34 | 28 | |||
35 | 20101125: | 29 | 20101125: | |
36 | The latest changes to setenv(3) dissallow setting environment | 30 | The latest changes to setenv(3) dissallow setting environment | |
37 | variables with names that contain '='. Revision 1.18 of env.c | 31 | variables with names that contain '='. Revision 1.18 of env.c | |
38 | assumed that this was allowed. Installing a new libc with an | 32 | assumed that this was allowed. Installing a new libc with an | |
39 | old copy of /usr/bin/env causes env x=1 printenv | grep x= to | 33 | old copy of /usr/bin/env causes env x=1 printenv | grep x= to | |
40 | break which affects the autoconf tests for dependency finding, | 34 | break which affects the autoconf tests for dependency finding, | |
41 | so building gcc will end up printing: | 35 | so building gcc will end up printing: |
--- src/share/mk/sys.mk 2011/01/17 18:11:10 1.103
+++ src/share/mk/sys.mk 2011/01/21 15:59:04 1.104
--- src/sys/arch/acorn26/conf/Attic/Makefile.acorn26 2008/02/13 23:37:17 1.10
+++ src/sys/arch/acorn26/conf/Attic/Makefile.acorn26 2011/01/21 15:59:04 1.11
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.acorn26,v 1.10 2008/02/13 23:37:17 joerg Exp $ | 1 | # $NetBSD: Makefile.acorn26,v 1.11 2011/01/21 15:59:04 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/acorn26/conf/``machineid'' | 8 | # /sys/arch/acorn26/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/acorn26/conf/Makefile.i386 | 12 | # /sys/arch/acorn26/conf/Makefile.i386 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -26,27 +26,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -26,27 +26,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
26 | ## | 26 | ## | |
27 | ARM= $S/arch/arm | 27 | ARM= $S/arch/arm | |
28 | ACORN26= $S/arch/acorn26 | 28 | ACORN26= $S/arch/acorn26 | |
29 | GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf | 29 | GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dacorn26 | 34 | CPPFLAGS+= -Dacorn26 | |
35 | CWARNFLAGS+= -Wcomment | 35 | CWARNFLAGS+= -Wcomment | |
36 | # We'd like GCC to leave R14 alone as much as possible (so page faults in the | 36 | # We'd like GCC to leave R14 alone as much as possible (so page faults in the | |
37 | # kernel are safer). | 37 | # kernel are safer). | |
38 | CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer | 38 | CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer | |
39 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 39 | AFLAGS+= -x assembler-with-cpp | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (3) libkern and compat | 42 | ## (3) libkern and compat | |
43 | ## | 43 | ## | |
44 | 44 | |||
45 | ## | 45 | ## | |
46 | ## (4) local objects, compile rules, and dependencies | 46 | ## (4) local objects, compile rules, and dependencies | |
47 | ## | 47 | ## | |
48 | MD_OBJS= vectors.o locore.o | 48 | MD_OBJS= vectors.o locore.o | |
49 | MD_CFILES= | 49 | MD_CFILES= | |
50 | MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S | 50 | MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S | |
51 | 51 | |||
52 | locore.o: ${ACORN26}/acorn26/locore.S assym.h | 52 | locore.o: ${ACORN26}/acorn26/locore.S assym.h |
--- src/sys/arch/amiga/conf/Makefile.amiga 2009/01/25 22:25:08 1.106
+++ src/sys/arch/amiga/conf/Makefile.amiga 2011/01/21 15:59:05 1.107
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.amiga,v 1.106 2009/01/25 22:25:08 abs Exp $ | 1 | # $NetBSD: Makefile.amiga,v 1.107 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/amiga/conf/``machineid'' | 8 | # /sys/arch/amiga/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/amiga/conf/Makefile.amiga | 12 | # /sys/arch/amiga/conf/Makefile.amiga | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -27,27 +27,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -27,27 +27,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
27 | ## | 27 | ## | |
28 | AMIGA= $S/arch/amiga | 28 | AMIGA= $S/arch/amiga | |
29 | GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf | 29 | GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Damiga -DFPCOPROC | 34 | CPPFLAGS+= -Damiga -DFPCOPROC | |
35 | .if !defined(CMACHFLAGS) | 35 | .if !defined(CMACHFLAGS) | |
36 | .include "$S/arch/m68k/Makefile.cmachflags" | 36 | .include "$S/arch/m68k/Makefile.cmachflags" | |
37 | CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851 | 37 | CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851 | |
38 | .endif | 38 | .endif | |
39 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 39 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
40 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 40 | AFLAGS+= -x assembler-with-cpp | |
41 | 41 | |||
42 | ## | 42 | ## | |
43 | ## (3) libkern and compat | 43 | ## (3) libkern and compat | |
44 | ## | 44 | ## | |
45 | KERN_AS= obj | 45 | KERN_AS= obj | |
46 | 46 | |||
47 | ## | 47 | ## | |
48 | ## (4) local objects, compile rules, and dependencies | 48 | ## (4) local objects, compile rules, and dependencies | |
49 | ## | 49 | ## | |
50 | # for the Motorola 68040 Floating Point Software Product | 50 | # for the Motorola 68040 Floating Point Software Product | |
51 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 51 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
52 | 52 | |||
53 | # for the Motorola 68060 Software Support Package | 53 | # for the Motorola 68060 Software Support Package |
--- src/sys/arch/arc/stand/boot/Makefile 2010/05/27 06:58:12 1.9
+++ src/sys/arch/arc/stand/boot/Makefile 2011/01/21 15:59:05 1.10
@@ -1,37 +1,37 @@ | @@ -1,37 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2010/05/27 06:58:12 dholland Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include <bsd.sys.mk> # for ${HOST_SH} | 4 | .include <bsd.sys.mk> # for ${HOST_SH} | |
5 | 5 | |||
6 | S!= cd ${.CURDIR}/../../../..; pwd | 6 | S!= cd ${.CURDIR}/../../../..; pwd | |
7 | 7 | |||
8 | PROG= boot | 8 | PROG= boot | |
9 | MKMAN= no # defined | 9 | MKMAN= no # defined | |
10 | STRIPFLAG= | 10 | STRIPFLAG= | |
11 | BINMODE= 444 | 11 | BINMODE= 444 | |
12 | 12 | |||
13 | NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh | 13 | NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh | |
14 | 14 | |||
15 | SRCS= start.S | 15 | SRCS= start.S | |
16 | SRCS+= boot.c bootinfo.c conf.c devopen.c disk.c getchar.c getopt.c putchar.c | 16 | SRCS+= boot.c bootinfo.c conf.c devopen.c disk.c getchar.c getopt.c putchar.c | |
17 | 17 | |||
18 | # XXX SHOULD NOT NEED TO DEFINE THESE! | 18 | # XXX SHOULD NOT NEED TO DEFINE THESE! | |
19 | LIBCRT0= | 19 | LIBCRT0= | |
20 | LIBC= | 20 | LIBC= | |
21 | LIBCRTBEGIN= | 21 | LIBCRTBEGIN= | |
22 | LIBCRTEND= | 22 | LIBCRTEND= | |
23 | 23 | |||
24 | AFLAGS= -x assembler-with-cpp -traditional-cpp -mno-abicalls -mips2 | 24 | AFLAGS= -x assembler-with-cpp -mno-abicalls -mips2 | |
25 | AFLAGS+= -D_LOCORE -D_KERNEL | 25 | AFLAGS+= -D_LOCORE -D_KERNEL | |
26 | CFLAGS= -Os -mmemcpy -G 1024 | 26 | CFLAGS= -Os -mmemcpy -G 1024 | |
27 | CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2 | 27 | CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2 | |
28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith | 28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith | |
29 | CPPFLAGS+= -nostdinc -I. -I${S} | 29 | CPPFLAGS+= -nostdinc -I. -I${S} | |
30 | CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE} | 30 | CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE} | |
31 | CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' | 31 | CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' | |
32 | #CPPFLAGS+= -DBOOT_DEBUG | 32 | #CPPFLAGS+= -DBOOT_DEBUG | |
33 | LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript | 33 | LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript | |
34 | TEXTADDR= 0x80f00000 | 34 | TEXTADDR= 0x80f00000 | |
35 | 35 | |||
36 | # if there is a 'version' file, add rule for vers.c and add it to SRCS | 36 | # if there is a 'version' file, add rule for vers.c and add it to SRCS | |
37 | # and CLEANFILES | 37 | # and CLEANFILES |
--- src/sys/arch/atari/conf/Makefile.atari 2009/10/19 13:40:28 1.74
+++ src/sys/arch/atari/conf/Makefile.atari 2011/01/21 15:59:05 1.75
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.atari,v 1.74 2009/10/19 13:40:28 tsutsui Exp $ | 1 | # $NetBSD: Makefile.atari,v 1.75 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/atari/conf/``machineid'' | 8 | # /sys/arch/atari/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/atari/conf/Makefile.atari | 12 | # /sys/arch/atari/conf/Makefile.atari | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | 14 | |||
@@ -22,27 +22,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -22,27 +22,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
22 | ## | 22 | ## | |
23 | ATARI= $S/arch/atari | 23 | ATARI= $S/arch/atari | |
24 | GENASSYM_CONF= ${ATARI}/atari/genassym.cf | 24 | GENASSYM_CONF= ${ATARI}/atari/genassym.cf | |
25 | 25 | |||
26 | ## | 26 | ## | |
27 | ## (2) compile settings | 27 | ## (2) compile settings | |
28 | ## | 28 | ## | |
29 | CPPFLAGS+= -Datari | 29 | CPPFLAGS+= -Datari | |
30 | .if !defined(CMACHFLAGS) | 30 | .if !defined(CMACHFLAGS) | |
31 | .include "$S/arch/m68k/Makefile.cmachflags" | 31 | .include "$S/arch/m68k/Makefile.cmachflags" | |
32 | CMACHFLAGS+= -Wa,-m68030 | 32 | CMACHFLAGS+= -Wa,-m68030 | |
33 | .endif | 33 | .endif | |
34 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 34 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 35 | AFLAGS+= -x assembler-with-cpp | |
36 | 36 | |||
37 | ## | 37 | ## | |
38 | ## (3) libkern and compat | 38 | ## (3) libkern and compat | |
39 | ## | 39 | ## | |
40 | KERN_AS= obj | 40 | KERN_AS= obj | |
41 | 41 | |||
42 | ## | 42 | ## | |
43 | ## (4) local objects, compile rules, and dependencies | 43 | ## (4) local objects, compile rules, and dependencies | |
44 | ## | 44 | ## | |
45 | # for the Motorola 68040 Floating Point Software Product | 45 | # for the Motorola 68040 Floating Point Software Product | |
46 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 46 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
47 | 47 | |||
48 | # for the Motorola 68060 Software Support Package | 48 | # for the Motorola 68060 Software Support Package |
--- src/sys/arch/bebox/stand/boot/Makefile 2010/10/14 06:58:22 1.29
+++ src/sys/arch/bebox/stand/boot/Makefile 2011/01/21 15:59:05 1.30
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.29 2010/10/14 06:58:22 kiyohara Exp $ | 1 | # $NetBSD: Makefile,v 1.30 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | COMMON= ${.CURDIR}/../common | 7 | COMMON= ${.CURDIR}/../common | |
8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | 8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | |
9 | 9 | |||
10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} ${.CURDIR}/../../../powerpc/powerpc | 10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} ${.CURDIR}/../../../powerpc/powerpc | |
11 | 11 | |||
12 | S= ${.CURDIR}/../../../.. | 12 | S= ${.CURDIR}/../../../.. | |
13 | L= ${COMMONOBJ}/lib | 13 | L= ${COMMONOBJ}/lib | |
14 | 14 | |||
@@ -17,27 +17,27 @@ ELF2PEF= ${.CURDIR}/../../../powerpc/sta | @@ -17,27 +17,27 @@ ELF2PEF= ${.CURDIR}/../../../powerpc/sta | |||
17 | COMMONLIBDIR= ${.CURDIR}/../../../../../common | 17 | COMMONLIBDIR= ${.CURDIR}/../../../../../common | |
18 | 18 | |||
19 | BASE?= boot | 19 | BASE?= boot | |
20 | PROG= ${BASE} | 20 | PROG= ${BASE} | |
21 | NEWVERSWHAT= "BOOT" | 21 | NEWVERSWHAT= "BOOT" | |
22 | 22 | |||
23 | SRCS= srt0.s | 23 | SRCS= srt0.s | |
24 | SRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c | 24 | SRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c | |
25 | SRCS+= fd.c filesystem.c inkernel.c io.c kbd.c monitor.c ns16550.c | 25 | SRCS+= fd.c filesystem.c inkernel.c io.c kbd.c monitor.c ns16550.c | |
26 | SRCS+= pci.c prf.c sd.c siop.c tgets.c vers.c vga.c video.c vreset.c wdc.c wd.c | 26 | SRCS+= pci.c prf.c sd.c siop.c tgets.c vers.c vga.c video.c vreset.c wdc.c wd.c | |
27 | SRCS+= setjmp.S | 27 | SRCS+= setjmp.S | |
28 | 28 | |||
29 | CFLAGS= -Wno-main -ffreestanding | 29 | CFLAGS= -Wno-main -ffreestanding | |
30 | AFLAGS= -x assembler-with-cpp -traditional-cpp | 30 | AFLAGS= -x assembler-with-cpp | |
31 | 31 | |||
32 | CPPFLAGS= -nostdinc | 32 | CPPFLAGS= -nostdinc | |
33 | CPPFLAGS+= -I${.OBJDIR} -I${S} -I${COMMONLIBDIR}/include -I${S}/lib/libsa | 33 | CPPFLAGS+= -I${.OBJDIR} -I${S} -I${COMMONLIBDIR}/include -I${S}/lib/libsa | |
34 | CPPFLAGS+= -I${ELF2PEF} | 34 | CPPFLAGS+= -I${ELF2PEF} | |
35 | CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | 35 | CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | |
36 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | 36 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | |
37 | CPPFLAGS+= -D__daddr_t=int32_t | 37 | CPPFLAGS+= -D__daddr_t=int32_t | |
38 | #CPPFLAGS+= -DDBMONITOR | 38 | #CPPFLAGS+= -DDBMONITOR | |
39 | 39 | |||
40 | .if (${BASE} == "boot") | 40 | .if (${BASE} == "boot") | |
41 | CPPFLAGS+= -DCONS_BE | 41 | CPPFLAGS+= -DCONS_BE | |
42 | .elif (${BASE} == "boot_com0") | 42 | .elif (${BASE} == "boot_com0") | |
43 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | 43 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 |
--- src/sys/arch/cesfic/conf/Makefile.cesfic 2006/09/01 13:07:51 1.15
+++ src/sys/arch/cesfic/conf/Makefile.cesfic 2011/01/21 15:59:05 1.16
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.cesfic,v 1.15 2006/09/01 13:07:51 matt Exp $ | 1 | # $NetBSD: Makefile.cesfic,v 1.16 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/cesfic/conf/``machineid'' | 8 | # /sys/arch/cesfic/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/cesfic/conf/Makefile.cesfic | 12 | # /sys/arch/cesfic/conf/Makefile.cesfic | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -24,27 +24,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -24,27 +24,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | CESFIC= $S/arch/cesfic | 28 | CESFIC= $S/arch/cesfic | |
29 | GENASSYM_CONF= ${CESFIC}/cesfic/genassym.cf | 29 | GENASSYM_CONF= ${CESFIC}/cesfic/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dcesfic | 34 | CPPFLAGS+= -Dcesfic | |
35 | CWARNFLAGS+= -Wno-format | 35 | CWARNFLAGS+= -Wno-format | |
36 | CFLAGS+= -msoft-float | 36 | CFLAGS+= -msoft-float | |
37 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 37 | AFLAGS+= -x assembler-with-cpp | |
38 | AFLAGS+= -Wa,-m68040 -Wa,-m68030 -Wa,-m68851 | 38 | AFLAGS+= -Wa,-m68040 -Wa,-m68030 -Wa,-m68851 | |
39 | 39 | |||
40 | ## | 40 | ## | |
41 | ## (3) libkern and compat | 41 | ## (3) libkern and compat | |
42 | ## | 42 | ## | |
43 | KERN_AS= obj | 43 | KERN_AS= obj | |
44 | 44 | |||
45 | ## | 45 | ## | |
46 | ## (4) local objects, compile rules, and dependencies | 46 | ## (4) local objects, compile rules, and dependencies | |
47 | ## | 47 | ## | |
48 | # for the Motorola 68040 Floating Point Software Product | 48 | # for the Motorola 68040 Floating Point Software Product | |
49 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 49 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
50 | 50 |
--- src/sys/arch/hp300/conf/Makefile.hp300 2005/12/11 12:17:13 1.87
+++ src/sys/arch/hp300/conf/Makefile.hp300 2011/01/21 15:59:06 1.88
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.hp300,v 1.87 2005/12/11 12:17:13 christos Exp $ | 1 | # $NetBSD: Makefile.hp300,v 1.88 2011/01/21 15:59:06 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/hp300/conf/``machineid'' | 8 | # /sys/arch/hp300/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/hp300/conf/Makefile.hp300 | 12 | # /sys/arch/hp300/conf/Makefile.hp300 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | HP300= $S/arch/hp300 | 28 | HP300= $S/arch/hp300 | |
29 | GENASSYM_CONF= ${HP300}/hp300/genassym.cf | 29 | GENASSYM_CONF= ${HP300}/hp300/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dhp300 | 34 | CPPFLAGS+= -Dhp300 | |
35 | CFLAGS+= -msoft-float | 35 | CFLAGS+= -msoft-float | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | # for the Motorola 68040 Floating Point Software Product | 46 | # for the Motorola 68040 Floating Point Software Product | |
47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
48 | 48 | |||
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} |
--- src/sys/arch/hpcmips/stand/lcboot/Makefile 2006/06/02 19:46:24 1.9
+++ src/sys/arch/hpcmips/stand/lcboot/Makefile 2011/01/21 15:59:06 1.10
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2006/06/02 19:46:24 mrg Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2011/01/21 15:59:06 joerg Exp $ | |
2 | .include <bsd.own.mk> | 2 | .include <bsd.own.mk> | |
3 | 3 | |||
4 | ROMICE?= no | 4 | ROMICE?= no | |
5 | 5 | |||
6 | S= ${.CURDIR}/../../../../ | 6 | S= ${.CURDIR}/../../../../ | |
7 | 7 | |||
8 | PROG= lcboot.out | 8 | PROG= lcboot.out | |
9 | SREC= lcboot.srec | 9 | SREC= lcboot.srec | |
10 | MKMAN= no | 10 | MKMAN= no | |
11 | WARNS= 1 | 11 | WARNS= 1 | |
12 | SRCS= start.S main.c com.c conf.c dev_flash.c dev_net.c \ | 12 | SRCS= start.S main.c com.c conf.c dev_flash.c dev_net.c \ | |
13 | devopen.c i28f128.c if_cs.c | 13 | devopen.c i28f128.c if_cs.c | |
14 | 14 | |||
@@ -17,27 +17,27 @@ SRCS= start.S main.c com.c conf.c dev_fl | @@ -17,27 +17,27 @@ SRCS= start.S main.c com.c conf.c dev_fl | |||
17 | 17 | |||
18 | STARTOBJS= | 18 | STARTOBJS= | |
19 | 19 | |||
20 | NEWVERSWHAT= "L-Card+ Boot" | 20 | NEWVERSWHAT= "L-Card+ Boot" | |
21 | VERSIONFILE= ${S}/arch/hpcmips/stand/lcboot/version | 21 | VERSIONFILE= ${S}/arch/hpcmips/stand/lcboot/version | |
22 | 22 | |||
23 | 23 | |||
24 | # Make sure we override any optimization options specified by the user. | 24 | # Make sure we override any optimization options specified by the user. | |
25 | #COPTS= -Os | 25 | #COPTS= -Os | |
26 | COPTS= | 26 | COPTS= | |
27 | DBG= | 27 | DBG= | |
28 | 28 | |||
29 | AFLAGS+= -D_LOCORE -D_KERNEL | 29 | AFLAGS+= -D_LOCORE -D_KERNEL | |
30 | AFLAGS+= -x assembler-with-cpp -traditional-cpp -mips2 -mno-abicalls | 30 | AFLAGS+= -x assembler-with-cpp -mips2 -mno-abicalls | |
31 | INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch | 31 | INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch | |
32 | CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff | 32 | CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff | |
33 | CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy | 33 | CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy | |
34 | LD_SCRIPT= lcboot.ldscript | 34 | LD_SCRIPT= lcboot.ldscript | |
35 | 35 | |||
36 | .if defined(ROMICE) && (${ROMICE} == "yes") | 36 | .if defined(ROMICE) && (${ROMICE} == "yes") | |
37 | CPPFLAGS+= -DROMICE | 37 | CPPFLAGS+= -DROMICE | |
38 | .endif | 38 | .endif | |
39 | 39 | |||
40 | .if !make(obj) && !make(clean) && !make(cleandir) | 40 | .if !make(obj) && !make(clean) && !make(cleandir) | |
41 | .BEGIN: | 41 | .BEGIN: | |
42 | @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) | 42 | @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) | |
43 | @[ -h mips ] || ln -s ${S}/arch/mips/include mips | 43 | @[ -h mips ] || ln -s ${S}/arch/mips/include mips |
--- src/sys/arch/luna68k/conf/Makefile.luna68k 2008/02/19 14:38:14 1.19
+++ src/sys/arch/luna68k/conf/Makefile.luna68k 2011/01/21 15:59:06 1.20
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.luna68k,v 1.19 2008/02/19 14:38:14 joerg Exp $ | 1 | # $NetBSD: Makefile.luna68k,v 1.20 2011/01/21 15:59:06 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/luna68k/conf/``machineid'' | 8 | # /sys/arch/luna68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/luna68k/conf/Makefile.luna68k | 12 | # /sys/arch/luna68k/conf/Makefile.luna68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 14 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
@@ -22,27 +22,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -22,27 +22,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
22 | .include <bsd.own.mk> | 22 | .include <bsd.own.mk> | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (1) port identification | 25 | ## (1) port identification | |
26 | ## | 26 | ## | |
27 | LUNA68K= $S/arch/luna68k | 27 | LUNA68K= $S/arch/luna68k | |
28 | GENASSYM_CONF= ${LUNA68K}/luna68k/genassym.cf | 28 | GENASSYM_CONF= ${LUNA68K}/luna68k/genassym.cf | |
29 | 29 | |||
30 | ## | 30 | ## | |
31 | ## (2) compile settings | 31 | ## (2) compile settings | |
32 | ## | 32 | ## | |
33 | CPPFLAGS+= -Dluna68k | 33 | CPPFLAGS+= -Dluna68k | |
34 | CFLAGS+= -msoft-float | 34 | CFLAGS+= -msoft-float | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 35 | AFLAGS+= -x assembler-with-cpp | |
36 | 36 | |||
37 | ## | 37 | ## | |
38 | ## (3) libkern and compat | 38 | ## (3) libkern and compat | |
39 | ## | 39 | ## | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (4) local objects, compile rules, and dependencies | 42 | ## (4) local objects, compile rules, and dependencies | |
43 | ## | 43 | ## | |
44 | # for the Motorola 68040 Floating Point Software Product | 44 | # for the Motorola 68040 Floating Point Software Product | |
45 | # .include "$S/arch/m68k/fpsp/Makefile.inc" | 45 | # .include "$S/arch/m68k/fpsp/Makefile.inc" | |
46 | 46 | |||
47 | MD_OBJS= locore.o ${FPSP} | 47 | MD_OBJS= locore.o ${FPSP} | |
48 | MD_CFILES= | 48 | MD_CFILES= |
--- src/sys/arch/mac68k/conf/Makefile.mac68k 2008/02/18 14:01:17 1.89
+++ src/sys/arch/mac68k/conf/Makefile.mac68k 2011/01/21 15:59:07 1.90
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.mac68k,v 1.89 2008/02/18 14:01:17 joerg Exp $ | 1 | # $NetBSD: Makefile.mac68k,v 1.90 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/mac68k/conf/``machineid'' | 8 | # /sys/arch/mac68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/mac68k/conf/Makefile.mac68k | 12 | # /sys/arch/mac68k/conf/Makefile.mac68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | MAC68K= $S/arch/mac68k | 28 | MAC68K= $S/arch/mac68k | |
29 | GENASSYM_CONF= ${MAC68K}/mac68k/genassym.cf | 29 | GENASSYM_CONF= ${MAC68K}/mac68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dmac68k | 34 | CPPFLAGS+= -Dmac68k | |
35 | CFLAGS+= -msoft-float | 35 | CFLAGS+= -msoft-float | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | # for the Motorola 68040 Floating Point Software Product | 46 | # for the Motorola 68040 Floating Point Software Product | |
47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
48 | 48 | |||
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} |
--- src/sys/arch/mips/conf/Makefile.mips 2009/12/14 00:46:04 1.55
+++ src/sys/arch/mips/conf/Makefile.mips 2011/01/21 15:59:07 1.56
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.mips,v 1.55 2009/12/14 00:46:04 matt Exp $ | 1 | # $NetBSD: Makefile.mips,v 1.56 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/<machine>/conf/``machineid'' | 8 | # /sys/arch/<machine>/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/mips/conf/Makefile.mips | 12 | # /sys/arch/mips/conf/Makefile.mips | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -57,27 +57,27 @@ LDFLAGS+= -m elf64btsmip | @@ -57,27 +57,27 @@ LDFLAGS+= -m elf64btsmip | |||
57 | LINKFORMAT+= -m elf64btsmip | 57 | LINKFORMAT+= -m elf64btsmip | |
58 | SYSTEM_LD_TAIL_EXTRA+= \ | 58 | SYSTEM_LD_TAIL_EXTRA+= \ | |
59 | ;echo ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32; \ | 59 | ;echo ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32; \ | |
60 | ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32 | 60 | ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32 | |
61 | .endif | 61 | .endif | |
62 | .if ${MACHINE_ARCH} == "mips64el" | 62 | .if ${MACHINE_ARCH} == "mips64el" | |
63 | LDFLAGS+= -m elf64ltsmip | 63 | LDFLAGS+= -m elf64ltsmip | |
64 | LINKFORMAT+= -m elf64ltsmip | 64 | LINKFORMAT+= -m elf64ltsmip | |
65 | SYSTEM_LD_TAIL_EXTRA+= \ | 65 | SYSTEM_LD_TAIL_EXTRA+= \ | |
66 | ;echo ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32; \ | 66 | ;echo ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32; \ | |
67 | ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32 | 67 | ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32 | |
68 | .endif | 68 | .endif | |
69 | .endif # LP64=yes | 69 | .endif # LP64=yes | |
70 | AFLAGS+= -mno-abicalls -x assembler-with-cpp -traditional-cpp ${AOPTS} | 70 | AFLAGS+= -mno-abicalls -x assembler-with-cpp ${AOPTS} | |
71 | 71 | |||
72 | ## | 72 | ## | |
73 | ## (3) libkern and compat | 73 | ## (3) libkern and compat | |
74 | ## | 74 | ## | |
75 | OPT_MODULAR= %MODULAR% | 75 | OPT_MODULAR= %MODULAR% | |
76 | .if !empty(OPT_MODULAR) | 76 | .if !empty(OPT_MODULAR) | |
77 | KERN_AS= obj | 77 | KERN_AS= obj | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | ## | 80 | ## | |
81 | ## (4) local objects, compile rules, and dependencies | 81 | ## (4) local objects, compile rules, and dependencies | |
82 | ## | 82 | ## | |
83 | MD_OBJS= locore.o locore_machdep.o | 83 | MD_OBJS= locore.o locore_machdep.o |
--- src/sys/arch/mips/include/Makefile.inc 2009/11/29 23:46:41 1.8
+++ src/sys/arch/mips/include/Makefile.inc 2011/01/21 15:59:07 1.9
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.8 2009/11/29 23:46:41 pooka Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.9 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | CFLAGS+= -G 0 -ffixed-23 | 3 | CFLAGS+= -G 0 -ffixed-23 | |
4 | 4 | |||
5 | # this should really be !(RUMPKERNEL && target=PIC) | 5 | # this should really be !(RUMPKERNEL && target=PIC) | |
6 | .if !defined(RUMPKERNEL) | 6 | .if !defined(RUMPKERNEL) | |
7 | CFLAGS+= -mno-abicalls | 7 | CFLAGS+= -mno-abicalls | |
8 | AFLAGS+= -mno-abicalls | 8 | AFLAGS+= -mno-abicalls | |
9 | .endif | 9 | .endif | |
10 | 10 | |||
11 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | 11 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | |
12 | CFLAGS+= -msym32 | 12 | CFLAGS+= -msym32 | |
13 | .endif | 13 | .endif | |
14 | 14 | |||
15 | AFLAGS+= -x assembler-with-cpp -traditional-cpp ${AOPTS} | 15 | AFLAGS+= -x assembler-with-cpp ${AOPTS} |
--- src/sys/arch/mvme68k/conf/Makefile.mvme68k 2008/02/18 14:11:48 1.61
+++ src/sys/arch/mvme68k/conf/Makefile.mvme68k 2011/01/21 15:59:07 1.62
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.mvme68k,v 1.61 2008/02/18 14:11:48 joerg Exp $ | 1 | # $NetBSD: Makefile.mvme68k,v 1.62 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/mvme68k/conf/``machineid'' | 8 | # /sys/arch/mvme68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/mvme68k/conf/Makefile.mvme68k | 12 | # /sys/arch/mvme68k/conf/Makefile.mvme68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -36,27 +36,27 @@ CPPFLAGS+= -Dmvme68k | @@ -36,27 +36,27 @@ CPPFLAGS+= -Dmvme68k | |||
36 | .if empty(IDENT:M-DMVME147) | 36 | .if empty(IDENT:M-DMVME147) | |
37 | CMACHFLAGS= -m68040 | 37 | CMACHFLAGS= -m68040 | |
38 | .else | 38 | .else | |
39 | CMACHFLAGS= -m68030 | 39 | CMACHFLAGS= -m68030 | |
40 | .endif | 40 | .endif | |
41 | .else | 41 | .else | |
42 | .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167) | 42 | .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167) | |
43 | CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 | 43 | CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 | |
44 | .else | 44 | .else | |
45 | CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851 | 45 | CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851 | |
46 | .endif | 46 | .endif | |
47 | .endif | 47 | .endif | |
48 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 48 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
49 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 49 | AFLAGS+= -x assembler-with-cpp | |
50 | 50 | |||
51 | ## | 51 | ## | |
52 | ## (3) libkern and compat | 52 | ## (3) libkern and compat | |
53 | ## | 53 | ## | |
54 | KERN_AS= obj | 54 | KERN_AS= obj | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (4) local objects, compile rules, and dependencies | 57 | ## (4) local objects, compile rules, and dependencies | |
58 | ## | 58 | ## | |
59 | # for the Motorola 68040 Floating Point Software Product | 59 | # for the Motorola 68040 Floating Point Software Product | |
60 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 60 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
61 | 61 | |||
62 | # for the Motorola 68060 Software Support Package | 62 | # for the Motorola 68060 Software Support Package |
--- src/sys/arch/mvme68k/stand/bootxx/Makefile 2011/01/02 05:30:12 1.9
+++ src/sys/arch/mvme68k/stand/bootxx/Makefile 2011/01/21 15:59:07 1.10
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 | 1 | # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 | |
2 | # $NetBSD: Makefile,v 1.9 2011/01/02 05:30:12 tsutsui Exp $ | 2 | # $NetBSD: Makefile,v 1.10 2011/01/21 15:59:07 joerg Exp $ | |
3 | 3 | |||
4 | COMPILE.S= $(CC) -x assembler-with-cpp -traditional-cpp \ | 4 | COMPILE.S= $(CC) -x assembler-with-cpp \ | |
5 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | 5 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | |
6 | 6 | |||
7 | SRCS= bootxx.c conf.c block_x.S | 7 | SRCS= bootxx.c conf.c block_x.S | |
8 | PROG= bootxx | 8 | PROG= bootxx | |
9 | LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} | 9 | LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} | |
10 | DPADD= ${LIBS} | 10 | DPADD= ${LIBS} | |
11 | SRTOBJ= | 11 | SRTOBJ= | |
12 | 12 | |||
13 | .include "../Makefile.booters" | 13 | .include "../Makefile.booters" | |
14 | 14 | |||
15 | .include <bsd.prog.mk> | 15 | .include <bsd.prog.mk> |
--- src/sys/arch/mvme68k/stand/libbug/Makefile 2009/12/06 13:31:16 1.15
+++ src/sys/arch/mvme68k/stand/libbug/Makefile 2011/01/21 15:59:08 1.16
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.15 2009/12/06 13:31:16 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.16 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | LIB=bug | 3 | LIB=bug | |
4 | 4 | |||
5 | NOPIC= # defined | 5 | NOPIC= # defined | |
6 | NOLINT= # defined | 6 | NOLINT= # defined | |
7 | NOPROFILE= # defined | 7 | NOPROFILE= # defined | |
8 | 8 | |||
9 | S=${.CURDIR}/../../../.. | 9 | S=${.CURDIR}/../../../.. | |
10 | DIR_SA=$S/lib/libsa | 10 | DIR_SA=$S/lib/libsa | |
11 | 11 | |||
12 | SRCS= bugcrt.c delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c \ | 12 | SRCS= bugcrt.c delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c \ | |
13 | outln.c outstr.c putchar.c return.c rtc_rd.c | 13 | outln.c outstr.c putchar.c return.c rtc_rd.c | |
14 | OBJS+= bugstart.o | 14 | OBJS+= bugstart.o | |
15 | CLEANFILES+= bugstart.o | 15 | CLEANFILES+= bugstart.o | |
16 | 16 | |||
17 | .include "../Makefile.booters" | 17 | .include "../Makefile.booters" | |
18 | 18 | |||
19 | # only needed during build | 19 | # only needed during build | |
20 | libinstall:: | 20 | libinstall:: | |
21 | 21 | |||
22 | # separate rule for bugstart.c | 22 | # separate rule for bugstart.c | |
23 | # this is build separately from rest of libbug | 23 | # this is build separately from rest of libbug | |
24 | bugstart.o: bugstart.s | 24 | bugstart.o: bugstart.s | |
25 | ${CC} -x assembler-with-cpp -traditional-cpp -nostdinc ${INCPATH} \ | 25 | ${CC} -x assembler-with-cpp -nostdinc ${INCPATH} \ | |
26 | -D_STANDALONE -c ${.IMPSRC} | 26 | -D_STANDALONE -c ${.IMPSRC} | |
27 | 27 | |||
28 | all realall: lib${LIB}.a | 28 | all realall: lib${LIB}.a | |
29 | 29 | |||
30 | .include <bsd.own.mk> | 30 | .include <bsd.own.mk> | |
31 | .undef DESTDIR | 31 | .undef DESTDIR | |
32 | .include <bsd.lib.mk> | 32 | .include <bsd.lib.mk> |
--- src/sys/arch/mvme68k/stand/sboot/Makefile 2002/04/09 19:37:22 1.13
+++ src/sys/arch/mvme68k/stand/sboot/Makefile 2011/01/21 15:59:08 1.14
@@ -1,21 +1,21 @@ | @@ -1,21 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2002/04/09 19:37:22 scw Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | # | 3 | # | |
4 | # sboot would like a newer GNU ld because it can generate S-Records. | 4 | # sboot would like a newer GNU ld because it can generate S-Records. | |
5 | # Until then, we convert. | 5 | # Until then, we convert. | |
6 | # | 6 | # | |
7 | 7 | |||
8 | COMPILE.s= $(CC) -x assembler-with-cpp -traditional-cpp \ | 8 | COMPILE.s= $(CC) -x assembler-with-cpp \ | |
9 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | 9 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | |
10 | 10 | |||
11 | RELOC= 0x4000 | 11 | RELOC= 0x4000 | |
12 | SRCS= start.s clock.c console.c etherfun.c le_poll.c \ | 12 | SRCS= start.s clock.c console.c etherfun.c le_poll.c \ | |
13 | oc_cksum.s sboot.c | 13 | oc_cksum.s sboot.c | |
14 | SRTOBJ= | 14 | SRTOBJ= | |
15 | PROG= sboot | 15 | PROG= sboot | |
16 | LIBS= ${LIBSA} | 16 | LIBS= ${LIBSA} | |
17 | DPADD= ${LIBS} | 17 | DPADD= ${LIBS} | |
18 | CLEANFILES+= sboot.srec | 18 | CLEANFILES+= sboot.srec | |
19 | 19 | |||
20 | PROGDEPENDS= ${OBJS} ${LIBS} | 20 | PROGDEPENDS= ${OBJS} ${LIBS} | |
21 | PROGLINKOBJS= ${OBJS} ${LIBS} | 21 | PROGLINKOBJS= ${OBJS} ${LIBS} |
--- src/sys/arch/news68k/conf/Makefile.news68k 2008/03/01 14:00:30 1.19
+++ src/sys/arch/news68k/conf/Makefile.news68k 2011/01/21 15:59:08 1.20
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.news68k,v 1.19 2008/03/01 14:00:30 joerg Exp $ | 1 | # $NetBSD: Makefile.news68k,v 1.20 2011/01/21 15:59:08 joerg Exp $ | |
2 | # | 2 | # | |
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/news68k/conf/``machineid'' | 8 | # /sys/arch/news68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/news68k/conf/Makefile.news68k | 12 | # /sys/arch/news68k/conf/Makefile.news68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -26,27 +26,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -26,27 +26,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | .ifndef S | 28 | .ifndef S | |
29 | S= ../../../.. | 29 | S= ../../../.. | |
30 | .endif | 30 | .endif | |
31 | NEWS68K= $S/arch/news68k | 31 | NEWS68K= $S/arch/news68k | |
32 | GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf | 32 | GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf | |
33 | 33 | |||
34 | ## | 34 | ## | |
35 | ## (2) compile settings | 35 | ## (2) compile settings | |
36 | ## | 36 | ## | |
37 | CPPFLAGS+= -Dnews68k | 37 | CPPFLAGS+= -Dnews68k | |
38 | CFLAGS+= -msoft-float | 38 | CFLAGS+= -msoft-float | |
39 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 39 | AFLAGS+= -x assembler-with-cpp | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (3) libkern and compat | 42 | ## (3) libkern and compat | |
43 | ## | 43 | ## | |
44 | KERN_AS= obj | 44 | KERN_AS= obj | |
45 | 45 | |||
46 | ## | 46 | ## | |
47 | ## (4) local objects, compile rules, and dependencies | 47 | ## (4) local objects, compile rules, and dependencies | |
48 | ## | 48 | ## | |
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} | |
50 | MD_CFILES= | 50 | MD_CFILES= | |
51 | MD_SFILES= ${NEWS68K}/news68k/locore.s | 51 | MD_SFILES= ${NEWS68K}/news68k/locore.s | |
52 | 52 |
--- src/sys/arch/next68k/conf/Makefile.next68k 2008/02/14 00:09:36 1.29
+++ src/sys/arch/next68k/conf/Makefile.next68k 2011/01/21 15:59:08 1.30
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.next68k,v 1.29 2008/02/14 00:09:36 joerg Exp $ | 1 | # $NetBSD: Makefile.next68k,v 1.30 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/next68k/conf/``machineid'' | 8 | # /sys/arch/next68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/next68k/conf/Makefile.next68k | 12 | # /sys/arch/next68k/conf/Makefile.next68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | NEXT68K= $S/arch/next68k | 28 | NEXT68K= $S/arch/next68k | |
29 | GENASSYM_CONF= ${NEXT68K}/next68k/genassym.cf | 29 | GENASSYM_CONF= ${NEXT68K}/next68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dnext68k | 34 | CPPFLAGS+= -Dnext68k | |
35 | CFLAGS+= -msoft-float | 35 | CFLAGS+= -msoft-float | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | # for the Motorola 68040 Floating Point Software Product | 46 | # for the Motorola 68040 Floating Point Software Product | |
47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
48 | 48 | |||
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} |
--- src/sys/arch/prep/stand/boot/Makefile 2009/01/12 07:51:02 1.23
+++ src/sys/arch/prep/stand/boot/Makefile 2011/01/21 15:59:08 1.24
@@ -1,41 +1,41 @@ | @@ -1,41 +1,41 @@ | |||
1 | # $NetBSD: Makefile,v 1.23 2009/01/12 07:51:02 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.24 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | COMMON= ${.CURDIR}/../common | 7 | COMMON= ${.CURDIR}/../common | |
8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | 8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | |
9 | 9 | |||
10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | 10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | |
11 | 11 | |||
12 | S= ${.CURDIR}/../../../.. | 12 | S= ${.CURDIR}/../../../.. | |
13 | L= ${COMMONOBJ}/lib | 13 | L= ${COMMONOBJ}/lib | |
14 | 14 | |||
15 | MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage | 15 | MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage | |
16 | 16 | |||
17 | BASE?= boot | 17 | BASE?= boot | |
18 | PROG= ${BASE} | 18 | PROG= ${BASE} | |
19 | NEWVERSWHAT= "BOOT" | 19 | NEWVERSWHAT= "BOOT" | |
20 | 20 | |||
21 | SRCS= srt0.s | 21 | SRCS= srt0.s | |
22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | 22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | |
23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | 23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | |
24 | SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c | 24 | SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c | |
25 | 25 | |||
26 | CFLAGS= -Os -mmultiple -ffreestanding | 26 | CFLAGS= -Os -mmultiple -ffreestanding | |
27 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | 27 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | |
28 | AFLAGS= -x assembler-with-cpp -traditional-cpp | 28 | AFLAGS= -x assembler-with-cpp | |
29 | 29 | |||
30 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | 30 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | |
31 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | 31 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | |
32 | CPPFLAGS+= -D__daddr_t=int32_t | 32 | CPPFLAGS+= -D__daddr_t=int32_t | |
33 | #CPPFLAGS+= -DDBMONITOR | 33 | #CPPFLAGS+= -DDBMONITOR | |
34 | 34 | |||
35 | .if (${BASE} == "boot") | 35 | .if (${BASE} == "boot") | |
36 | CPPFLAGS+= -DCONS_VGA -DVGA_RESET | 36 | CPPFLAGS+= -DCONS_VGA -DVGA_RESET | |
37 | .elif (${BASE} == "boot_com0") | 37 | .elif (${BASE} == "boot_com0") | |
38 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | 38 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | |
39 | .elif (${BASE} == "boot_com0_vreset") | 39 | .elif (${BASE} == "boot_com0_vreset") | |
40 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 -DVGA_RESET | 40 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 -DVGA_RESET | |
41 | .endif | 41 | .endif |
--- src/sys/arch/rs6000/stand/boot/Makefile 2009/01/12 07:16:17 1.2
+++ src/sys/arch/rs6000/stand/boot/Makefile 2011/01/21 15:59:09 1.3
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2009/01/12 07:16:17 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | COMMON= ${.CURDIR}/../common | 7 | COMMON= ${.CURDIR}/../common | |
8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | 8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | |
9 | 9 | |||
10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | 10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | |
11 | 11 | |||
12 | S= ${.CURDIR}/../../../.. | 12 | S= ${.CURDIR}/../../../.. | |
13 | L= ${COMMONOBJ}/lib | 13 | L= ${COMMONOBJ}/lib | |
14 | 14 | |||
@@ -16,27 +16,27 @@ MKBOOTIMAGE= ${.CURDIR}/../../../powerpc | @@ -16,27 +16,27 @@ MKBOOTIMAGE= ${.CURDIR}/../../../powerpc | |||
16 | 16 | |||
17 | BASE?= boot | 17 | BASE?= boot | |
18 | PROG= ${BASE} | 18 | PROG= ${BASE} | |
19 | NEWVERSWHAT= "BOOT" | 19 | NEWVERSWHAT= "BOOT" | |
20 | 20 | |||
21 | SRCS= srt0.s | 21 | SRCS= srt0.s | |
22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | 22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | |
23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | 23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | |
24 | SRCS+= ns16550.c vers.c | 24 | SRCS+= ns16550.c vers.c | |
25 | SRCS+= iplcb.c | 25 | SRCS+= iplcb.c | |
26 | 26 | |||
27 | CFLAGS= -Os -mmultiple -ffreestanding | 27 | CFLAGS= -Os -mmultiple -ffreestanding | |
28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | 28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | |
29 | AFLAGS= -x assembler-with-cpp -traditional-cpp | 29 | AFLAGS= -x assembler-with-cpp | |
30 | 30 | |||
31 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | 31 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | |
32 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | 32 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | |
33 | CPPFLAGS+= -D__daddr_t=int32_t | 33 | CPPFLAGS+= -D__daddr_t=int32_t | |
34 | #CPPFLAGS+= -DDBMONITOR | 34 | #CPPFLAGS+= -DDBMONITOR | |
35 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30 | 35 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30 | |
36 | 36 | |||
37 | STRIPFLAG= | 37 | STRIPFLAG= | |
38 | BINMODE= 444 | 38 | BINMODE= 444 | |
39 | 39 | |||
40 | # XXX SHOULD NOT NEED TO DEFINE THESE! | 40 | # XXX SHOULD NOT NEED TO DEFINE THESE! | |
41 | LIBCRT0= | 41 | LIBCRT0= | |
42 | LIBC= | 42 | LIBC= |
--- src/sys/arch/sh3/conf/Makefile.sh3 2008/05/06 02:25:19 1.26
+++ src/sys/arch/sh3/conf/Makefile.sh3 2011/01/21 15:59:09 1.27
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.sh3,v 1.26 2008/05/06 02:25:19 uwe Exp $ | 1 | # $NetBSD: Makefile.sh3,v 1.27 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/<machine>/conf/``machineid'' | 8 | # /sys/arch/<machine>/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # CPU generic makefile changes should be made in | 11 | # CPU generic makefile changes should be made in | |
12 | # /sys/arch/sh3/conf/Makefile.sh3 | 12 | # /sys/arch/sh3/conf/Makefile.sh3 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (1) port identification | 25 | ## (1) port identification | |
26 | ## | 26 | ## | |
27 | THISSH3= $S/arch/${MACHINE} | 27 | THISSH3= $S/arch/${MACHINE} | |
28 | SH3= $S/arch/sh3 | 28 | SH3= $S/arch/sh3 | |
29 | GENASSYM_CONF= ${SH3}/sh3/genassym.cf | 29 | GENASSYM_CONF= ${SH3}/sh3/genassym.cf | |
30 | .-include "${THISSH3}/conf/Makefile.${MACHINE}.inc" | 30 | .-include "${THISSH3}/conf/Makefile.${MACHINE}.inc" | |
31 | 31 | |||
32 | ## | 32 | ## | |
33 | ## (2) compile settings | 33 | ## (2) compile settings | |
34 | ## | 34 | ## | |
35 | CPPFLAGS+= -D${MACHINE} | 35 | CPPFLAGS+= -D${MACHINE} | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | # -O2 is too -falign-* zealous for low-memory sh3 machines | 37 | # -O2 is too -falign-* zealous for low-memory sh3 machines | |
38 | COPTS?= -Os -freorder-blocks | 38 | COPTS?= -Os -freorder-blocks | |
39 | 39 | |||
40 | ## | 40 | ## | |
41 | ## (3) libkern and compat | 41 | ## (3) libkern and compat | |
42 | ## | 42 | ## | |
43 | 43 | |||
44 | ## | 44 | ## | |
45 | ## (4) local objects, compile rules, and dependencies | 45 | ## (4) local objects, compile rules, and dependencies | |
46 | ## | 46 | ## | |
47 | MD_OBJS= locore.o | 47 | MD_OBJS= locore.o | |
48 | MD_CFILES= | 48 | MD_CFILES= | |
49 | MD_SFILES= ${THISSH3}/${MACHINE}/locore.S | 49 | MD_SFILES= ${THISSH3}/${MACHINE}/locore.S |
--- src/sys/arch/sun2/conf/Makefile.sun2 2008/01/22 15:24:50 1.19
+++ src/sys/arch/sun2/conf/Makefile.sun2 2011/01/21 15:59:09 1.20
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.sun2,v 1.19 2008/01/22 15:24:50 joerg Exp $ | 1 | # $NetBSD: Makefile.sun2,v 1.20 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/sun2/conf/``machineid'' | 8 | # /sys/arch/sun2/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/sun2/conf/Makefile.sun2 | 12 | # /sys/arch/sun2/conf/Makefile.sun2 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | SUN2= $S/arch/sun2 | 28 | SUN2= $S/arch/sun2 | |
29 | GENASSYM_CONF= ${SUN2}/sun2/genassym.cf | 29 | GENASSYM_CONF= ${SUN2}/sun2/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dsun2 | 34 | CPPFLAGS+= -Dsun2 | |
35 | CFLAGS+= -msoft-float -fno-defer-pop | 35 | CFLAGS+= -msoft-float -fno-defer-pop | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | # XXX lib/libkern/arch/m68k/Makefile.inc needs to know that | 42 | # XXX lib/libkern/arch/m68k/Makefile.inc needs to know that | |
43 | # XXX our MACHINE_ARCH is m68000, and not m68k. --fredette | 43 | # XXX our MACHINE_ARCH is m68000, and not m68k. --fredette | |
44 | KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} | 44 | KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} | |
45 | 45 | |||
46 | ## | 46 | ## | |
47 | ## (4) local objects, compile rules, and dependencies | 47 | ## (4) local objects, compile rules, and dependencies | |
48 | ## | 48 | ## | |
49 | MD_OBJS= locore.o | 49 | MD_OBJS= locore.o |
--- src/sys/arch/sun3/conf/Makefile.sun3 2008/02/19 14:31:40 1.100
+++ src/sys/arch/sun3/conf/Makefile.sun3 2011/01/21 15:59:09 1.101
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.sun3,v 1.100 2008/02/19 14:31:40 joerg Exp $ | 1 | # $NetBSD: Makefile.sun3,v 1.101 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/sun3/conf/``machineid'' | 8 | # /sys/arch/sun3/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/sun3/conf/Makefile.sun3 | 12 | # /sys/arch/sun3/conf/Makefile.sun3 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | @@ -23,27 +23,27 @@ NEED_OWN_INSTALL_TARGET?=no | |||
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | SUN3= $S/arch/sun3 | 28 | SUN3= $S/arch/sun3 | |
29 | GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf | 29 | GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dsun3 | 34 | CPPFLAGS+= -Dsun3 | |
35 | CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop | 35 | CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | MD_OBJS= locore.o | 46 | MD_OBJS= locore.o | |
47 | MD_CFILES= | 47 | MD_CFILES= | |
48 | MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s | 48 | MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s | |
49 | 49 |
--- src/sys/arch/usermode/conf/Makefile.usermode 2007/12/29 17:48:23 1.3
+++ src/sys/arch/usermode/conf/Makefile.usermode 2011/01/21 15:59:09 1.4
@@ -1,35 +1,35 @@ | @@ -1,35 +1,35 @@ | |||
1 | # $NetBSD: Makefile.usermode,v 1.3 2007/12/29 17:48:23 jmcneill Exp $ | 1 | # $NetBSD: Makefile.usermode,v 1.4 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | MACHINE_ARCH= usermode | 3 | MACHINE_ARCH= usermode | |
4 | USETOOLS?= no | 4 | USETOOLS?= no | |
5 | NEED_OWN_INSTALL_TARGET?= no | 5 | NEED_OWN_INSTALL_TARGET?= no | |
6 | .include <bsd.own.mk> | 6 | .include <bsd.own.mk> | |
7 | 7 | |||
8 | SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o | 8 | SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o | |
9 | 9 | |||
10 | ## | 10 | ## | |
11 | ## (1) port identification | 11 | ## (1) port identification | |
12 | ## | 12 | ## | |
13 | USERMODE= $S/arch/usermode | 13 | USERMODE= $S/arch/usermode | |
14 | GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf | 14 | GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf | |
15 | 15 | |||
16 | ## | 16 | ## | |
17 | ## (2) compile settings | 17 | ## (2) compile settings | |
18 | ## | 18 | ## | |
19 | DEFCOPTS= -O2 | 19 | DEFCOPTS= -O2 | |
20 | CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree | 20 | CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree | |
21 | CPPFLAGS.init_main.c+= -Dmain=kernmain | 21 | CPPFLAGS.init_main.c+= -Dmain=kernmain | |
22 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 22 | AFLAGS+= -x assembler-with-cpp | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (3) libkern and compat | 25 | ## (3) libkern and compat | |
26 | ## | 26 | ## | |
27 | KERN_AS= obj | 27 | KERN_AS= obj | |
28 | 28 | |||
29 | ## | 29 | ## | |
30 | ## (4) local objects, compile rules, and dependencies | 30 | ## (4) local objects, compile rules, and dependencies | |
31 | ## | 31 | ## | |
32 | MD_OBJS= | 32 | MD_OBJS= | |
33 | MD_CFILES= | 33 | MD_CFILES= | |
34 | MD_SFILES= | 34 | MD_SFILES= | |
35 | 35 |
--- src/sys/arch/vax/conf/Makefile.vax 2008/03/01 13:59:56 1.80
+++ src/sys/arch/vax/conf/Makefile.vax 2011/01/21 15:59:10 1.81
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.vax,v 1.80 2008/03/01 13:59:56 joerg Exp $ | 1 | # $NetBSD: Makefile.vax,v 1.81 2011/01/21 15:59:10 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/vax/conf/``machineid'' | 8 | # /sys/arch/vax/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/vax/conf/Makefile.vax | 12 | # /sys/arch/vax/conf/Makefile.vax | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -22,27 +22,27 @@ USETOOLS?= no | @@ -22,27 +22,27 @@ USETOOLS?= no | |||
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | VAX= $S/arch/vax | 28 | VAX= $S/arch/vax | |
29 | GENASSYM_CONF= ${VAX}/vax/genassym.cf | 29 | GENASSYM_CONF= ${VAX}/vax/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -D_VAX_INLINE_ | 34 | CPPFLAGS+= -D_VAX_INLINE_ | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp -fno-pic | 35 | AFLAGS+= -x assembler-with-cpp -fno-pic | |
36 | CFLAGS+= -fno-pic | 36 | CFLAGS+= -fno-pic | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | MD_OBJS= intvec.o subr.o | 46 | MD_OBJS= intvec.o subr.o | |
47 | MD_CFILES= | 47 | MD_CFILES= | |
48 | MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S | 48 | MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S |
--- src/sys/arch/x68k/conf/Makefile.x68k 2008/02/12 18:26:48 1.61
+++ src/sys/arch/x68k/conf/Makefile.x68k 2011/01/21 15:59:10 1.62
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.x68k,v 1.61 2008/02/12 18:26:48 joerg Exp $ | 1 | # $NetBSD: Makefile.x68k,v 1.62 2011/01/21 15:59:10 joerg Exp $ | |
2 | # | 2 | # | |
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/x68k/conf/``machineid'' | 8 | # /sys/arch/x68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/x68k/conf/Makefile.x68k | 12 | # /sys/arch/x68k/conf/Makefile.x68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -22,27 +22,27 @@ USETOOLS?= no | @@ -22,27 +22,27 @@ USETOOLS?= no | |||
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | X68K= $S/arch/x68k | 28 | X68K= $S/arch/x68k | |
29 | GENASSYM_CONF= ${X68K}/x68k/genassym.cf | 29 | GENASSYM_CONF= ${X68K}/x68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dx68k | 34 | CPPFLAGS+= -Dx68k | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 35 | AFLAGS+= -x assembler-with-cpp | |
36 | CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 | 36 | CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 | |
37 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 37 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
38 | 38 | |||
39 | ## | 39 | ## | |
40 | ## (3) libkern and compat | 40 | ## (3) libkern and compat | |
41 | ## | 41 | ## | |
42 | KERN_AS= obj | 42 | KERN_AS= obj | |
43 | 43 | |||
44 | ## | 44 | ## | |
45 | ## (4) local objects, compile rules, and dependencies | 45 | ## (4) local objects, compile rules, and dependencies | |
46 | ## | 46 | ## | |
47 | # for the Motorola 68040 Floating Point Software Product | 47 | # for the Motorola 68040 Floating Point Software Product | |
48 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 48 | .include "$S/arch/m68k/fpsp/Makefile.inc" |