Fri Jan 21 15:59:10 2011 UTC ()
Switch remaining platforms to modern CPP for assembler.


(joerg)
diff -r1.219 -r1.220 src/UPDATING
diff -r1.103 -r1.104 src/share/mk/sys.mk
diff -r1.10 -r1.11 src/sys/arch/acorn26/conf/Makefile.acorn26
diff -r1.106 -r1.107 src/sys/arch/amiga/conf/Makefile.amiga
diff -r1.9 -r1.10 src/sys/arch/arc/stand/boot/Makefile
diff -r1.74 -r1.75 src/sys/arch/atari/conf/Makefile.atari
diff -r1.29 -r1.30 src/sys/arch/bebox/stand/boot/Makefile
diff -r1.15 -r1.16 src/sys/arch/cesfic/conf/Makefile.cesfic
diff -r1.87 -r1.88 src/sys/arch/hp300/conf/Makefile.hp300
diff -r1.9 -r1.10 src/sys/arch/hpcmips/stand/lcboot/Makefile
diff -r1.19 -r1.20 src/sys/arch/luna68k/conf/Makefile.luna68k
diff -r1.89 -r1.90 src/sys/arch/mac68k/conf/Makefile.mac68k
diff -r1.55 -r1.56 src/sys/arch/mips/conf/Makefile.mips
diff -r1.8 -r1.9 src/sys/arch/mips/include/Makefile.inc
diff -r1.61 -r1.62 src/sys/arch/mvme68k/conf/Makefile.mvme68k
diff -r1.9 -r1.10 src/sys/arch/mvme68k/stand/bootxx/Makefile
diff -r1.15 -r1.16 src/sys/arch/mvme68k/stand/libbug/Makefile
diff -r1.13 -r1.14 src/sys/arch/mvme68k/stand/sboot/Makefile
diff -r1.19 -r1.20 src/sys/arch/news68k/conf/Makefile.news68k
diff -r1.29 -r1.30 src/sys/arch/next68k/conf/Makefile.next68k
diff -r1.23 -r1.24 src/sys/arch/prep/stand/boot/Makefile
diff -r1.2 -r1.3 src/sys/arch/rs6000/stand/boot/Makefile
diff -r1.26 -r1.27 src/sys/arch/sh3/conf/Makefile.sh3
diff -r1.19 -r1.20 src/sys/arch/sun2/conf/Makefile.sun2
diff -r1.100 -r1.101 src/sys/arch/sun3/conf/Makefile.sun3
diff -r1.3 -r1.4 src/sys/arch/usermode/conf/Makefile.usermode
diff -r1.80 -r1.81 src/sys/arch/vax/conf/Makefile.vax
diff -r1.61 -r1.62 src/sys/arch/x68k/conf/Makefile.x68k

cvs diff -r1.219 -r1.220 src/UPDATING (expand / switch to unified diff)

--- 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
3This file (UPDATING) is intended to be a brief reference to recent 3This file (UPDATING) is intended to be a brief reference to recent
4changes that might cause problems in the build process, and a guide for 4changes that might cause problems in the build process, and a guide for
5what to do if something doesn't work. 5what to do if something doesn't work.
6 6
7For a more detailed description of the recommended way to build NetBSD 7For a more detailed description of the recommended way to build NetBSD
8using build.sh, see the BUILDING file. 8using build.sh, see the BUILDING file.
9 9
10Note that much of the advice in this UPDATING file was written before 10Note that much of the advice in this UPDATING file was written before
11build.sh existed. Nevertheless, the advice here may be useful for 11build.sh existed. Nevertheless, the advice here may be useful for
12working around specific problems with build.sh. 12working around specific problems with build.sh.
13 13
14See also: BUILDING, build.sh, Makefile. 14See also: BUILDING, build.sh, Makefile.
15 15
16Recent changes: 16Recent changes:
17^^^^^^^^^^^^^^^ 17^^^^^^^^^^^^^^^
1820110117: 1820110121:
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
3020101217: 2420101217:
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
3520101125: 2920101125:
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:

cvs diff -r1.103 -r1.104 src/share/mk/sys.mk (expand / switch to unified diff)

--- 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
@@ -1,37 +1,31 @@ @@ -1,37 +1,31 @@
1# $NetBSD: sys.mk,v 1.103 2011/01/17 18:11:10 joerg Exp $ 1# $NetBSD: sys.mk,v 1.104 2011/01/21 15:59:04 joerg Exp $
2# @(#)sys.mk 8.2 (Berkeley) 3/21/94 2# @(#)sys.mk 8.2 (Berkeley) 3/21/94
3 3
4unix?= We run NetBSD. 4unix?= We run NetBSD.
5 5
6.SUFFIXES: .a .o .ln .s .S .c .cc .cpp .cxx .C .f .F .r .p .l .y .sh 6.SUFFIXES: .a .o .ln .s .S .c .cc .cpp .cxx .C .f .F .r .p .l .y .sh
7 7
8.LIBS: .a 8.LIBS: .a
9 9
10AR?= ar 10AR?= ar
11ARFLAGS?= rl 11ARFLAGS?= rl
12RANLIB?= ranlib 12RANLIB?= ranlib
13 13
14AS?= as 14AS?= as
15AFLAGS?= 15AFLAGS?=
16COMPILE.s?= ${CC} ${AFLAGS} -c 16COMPILE.s?= ${CC} ${AFLAGS} -c
17LINK.s?= ${CC} ${AFLAGS} ${LDFLAGS} 17LINK.s?= ${CC} ${AFLAGS} ${LDFLAGS}
18.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ 
19 ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc" || \ 
20 ${MACHINE_ARCH} == "sparc64" 
21_ASM_TRADITIONAL_CPP= -x assembler-with-cpp 18_ASM_TRADITIONAL_CPP= -x assembler-with-cpp
22.else 
23_ASM_TRADITIONAL_CPP= -traditional-cpp 
24.endif 
25COMPILE.S?= ${CC} ${AFLAGS} ${CPPFLAGS} ${_ASM_TRADITIONAL_CPP} -c 19COMPILE.S?= ${CC} ${AFLAGS} ${CPPFLAGS} ${_ASM_TRADITIONAL_CPP} -c
26LINK.S?= ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS} 20LINK.S?= ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS}
27 21
28CC?= cc 22CC?= cc
29.if ${MACHINE_ARCH} == "alpha" || \ 23.if ${MACHINE_ARCH} == "alpha" || \
30 ${MACHINE_ARCH} == "arm" || \ 24 ${MACHINE_ARCH} == "arm" || \
31 ${MACHINE_ARCH} == "x86_64" || \ 25 ${MACHINE_ARCH} == "x86_64" || \
32 ${MACHINE_ARCH} == "armeb" || \ 26 ${MACHINE_ARCH} == "armeb" || \
33 ${MACHINE_ARCH} == "hppa" || \ 27 ${MACHINE_ARCH} == "hppa" || \
34 ${MACHINE_ARCH} == "i386" || \ 28 ${MACHINE_ARCH} == "i386" || \
35 ${MACHINE_ARCH} == "m68k" || \ 29 ${MACHINE_ARCH} == "m68k" || \
36 ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ 30 ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \
37 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" || \ 31 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" || \

cvs diff -r1.10 -r1.11 src/sys/arch/acorn26/conf/Attic/Makefile.acorn26 (expand / switch to unified diff)

--- 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##
27ARM= $S/arch/arm 27ARM= $S/arch/arm
28ACORN26= $S/arch/acorn26 28ACORN26= $S/arch/acorn26
29GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf 29GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dacorn26 34CPPFLAGS+= -Dacorn26
35CWARNFLAGS+= -Wcomment 35CWARNFLAGS+= -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).
38CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer 38CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer
39AFLAGS+= -x assembler-with-cpp -traditional-cpp 39AFLAGS+= -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##
48MD_OBJS= vectors.o locore.o 48MD_OBJS= vectors.o locore.o
49MD_CFILES= 49MD_CFILES=
50MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S 50MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S
51 51
52locore.o: ${ACORN26}/acorn26/locore.S assym.h 52locore.o: ${ACORN26}/acorn26/locore.S assym.h

cvs diff -r1.106 -r1.107 src/sys/arch/amiga/conf/Makefile.amiga (expand / switch to unified diff)

--- 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##
28AMIGA= $S/arch/amiga 28AMIGA= $S/arch/amiga
29GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf 29GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Damiga -DFPCOPROC 34CPPFLAGS+= -Damiga -DFPCOPROC
35.if !defined(CMACHFLAGS) 35.if !defined(CMACHFLAGS)
36.include "$S/arch/m68k/Makefile.cmachflags" 36.include "$S/arch/m68k/Makefile.cmachflags"
37CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851 37CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851
38.endif 38.endif
39CFLAGS+= ${CMACHFLAGS} -msoft-float 39CFLAGS+= ${CMACHFLAGS} -msoft-float
40AFLAGS+= -x assembler-with-cpp -traditional-cpp 40AFLAGS+= -x assembler-with-cpp
41 41
42## 42##
43## (3) libkern and compat 43## (3) libkern and compat
44## 44##
45KERN_AS= obj 45KERN_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

cvs diff -r1.9 -r1.10 src/sys/arch/arc/stand/boot/Makefile (expand / switch to unified diff)

--- 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
6S!= cd ${.CURDIR}/../../../..; pwd 6S!= cd ${.CURDIR}/../../../..; pwd
7 7
8PROG= boot 8PROG= boot
9MKMAN= no # defined 9MKMAN= no # defined
10STRIPFLAG= 10STRIPFLAG=
11BINMODE= 444 11BINMODE= 444
12 12
13NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh 13NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh
14 14
15SRCS= start.S 15SRCS= start.S
16SRCS+= boot.c bootinfo.c conf.c devopen.c disk.c getchar.c getopt.c putchar.c 16SRCS+= 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!
19LIBCRT0= 19LIBCRT0=
20LIBC= 20LIBC=
21LIBCRTBEGIN= 21LIBCRTBEGIN=
22LIBCRTEND= 22LIBCRTEND=
23 23
24AFLAGS= -x assembler-with-cpp -traditional-cpp -mno-abicalls -mips2 24AFLAGS= -x assembler-with-cpp -mno-abicalls -mips2
25AFLAGS+= -D_LOCORE -D_KERNEL 25AFLAGS+= -D_LOCORE -D_KERNEL
26CFLAGS= -Os -mmemcpy -G 1024 26CFLAGS= -Os -mmemcpy -G 1024
27CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2 27CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2
28CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 28CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
29CPPFLAGS+= -nostdinc -I. -I${S} 29CPPFLAGS+= -nostdinc -I. -I${S}
30CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE} 30CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE}
31CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 31CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
32#CPPFLAGS+= -DBOOT_DEBUG 32#CPPFLAGS+= -DBOOT_DEBUG
33LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript 33LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript
34TEXTADDR= 0x80f00000 34TEXTADDR= 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

cvs diff -r1.74 -r1.75 src/sys/arch/atari/conf/Makefile.atari (expand / switch to unified diff)

--- 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##
23ATARI= $S/arch/atari 23ATARI= $S/arch/atari
24GENASSYM_CONF= ${ATARI}/atari/genassym.cf 24GENASSYM_CONF= ${ATARI}/atari/genassym.cf
25 25
26## 26##
27## (2) compile settings 27## (2) compile settings
28## 28##
29CPPFLAGS+= -Datari 29CPPFLAGS+= -Datari
30.if !defined(CMACHFLAGS) 30.if !defined(CMACHFLAGS)
31.include "$S/arch/m68k/Makefile.cmachflags" 31.include "$S/arch/m68k/Makefile.cmachflags"
32CMACHFLAGS+= -Wa,-m68030 32CMACHFLAGS+= -Wa,-m68030
33.endif 33.endif
34CFLAGS+= ${CMACHFLAGS} -msoft-float 34CFLAGS+= ${CMACHFLAGS} -msoft-float
35AFLAGS+= -x assembler-with-cpp -traditional-cpp 35AFLAGS+= -x assembler-with-cpp
36 36
37## 37##
38## (3) libkern and compat 38## (3) libkern and compat
39## 39##
40KERN_AS= obj 40KERN_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

cvs diff -r1.29 -r1.30 src/sys/arch/bebox/stand/boot/Makefile (expand / switch to unified diff)

--- 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
3NOMAN= # defined 3NOMAN= # defined
4 4
5.include <bsd.own.mk> 5.include <bsd.own.mk>
6 6
7COMMON= ${.CURDIR}/../common 7COMMON= ${.CURDIR}/../common
8COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} 8COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR}
9 9
10.PATH: ${.CURDIR}/../boot ${COMMONOBJ} ${.CURDIR}/../../../powerpc/powerpc 10.PATH: ${.CURDIR}/../boot ${COMMONOBJ} ${.CURDIR}/../../../powerpc/powerpc
11 11
12S= ${.CURDIR}/../../../.. 12S= ${.CURDIR}/../../../..
13L= ${COMMONOBJ}/lib 13L= ${COMMONOBJ}/lib
14 14
@@ -17,27 +17,27 @@ ELF2PEF= ${.CURDIR}/../../../powerpc/sta @@ -17,27 +17,27 @@ ELF2PEF= ${.CURDIR}/../../../powerpc/sta
17COMMONLIBDIR= ${.CURDIR}/../../../../../common 17COMMONLIBDIR= ${.CURDIR}/../../../../../common
18 18
19BASE?= boot 19BASE?= boot
20PROG= ${BASE} 20PROG= ${BASE}
21NEWVERSWHAT= "BOOT" 21NEWVERSWHAT= "BOOT"
22 22
23SRCS= srt0.s 23SRCS= srt0.s
24SRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c 24SRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c
25SRCS+= fd.c filesystem.c inkernel.c io.c kbd.c monitor.c ns16550.c 25SRCS+= fd.c filesystem.c inkernel.c io.c kbd.c monitor.c ns16550.c
26SRCS+= pci.c prf.c sd.c siop.c tgets.c vers.c vga.c video.c vreset.c wdc.c wd.c 26SRCS+= pci.c prf.c sd.c siop.c tgets.c vers.c vga.c video.c vreset.c wdc.c wd.c
27SRCS+= setjmp.S 27SRCS+= setjmp.S
28 28
29CFLAGS= -Wno-main -ffreestanding 29CFLAGS= -Wno-main -ffreestanding
30AFLAGS= -x assembler-with-cpp -traditional-cpp 30AFLAGS= -x assembler-with-cpp
31 31
32CPPFLAGS= -nostdinc 32CPPFLAGS= -nostdinc
33CPPFLAGS+= -I${.OBJDIR} -I${S} -I${COMMONLIBDIR}/include -I${S}/lib/libsa 33CPPFLAGS+= -I${.OBJDIR} -I${S} -I${COMMONLIBDIR}/include -I${S}/lib/libsa
34CPPFLAGS+= -I${ELF2PEF} 34CPPFLAGS+= -I${ELF2PEF}
35CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes 35CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
36CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN 36CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
37CPPFLAGS+= -D__daddr_t=int32_t 37CPPFLAGS+= -D__daddr_t=int32_t
38#CPPFLAGS+= -DDBMONITOR 38#CPPFLAGS+= -DDBMONITOR
39 39
40.if (${BASE} == "boot") 40.if (${BASE} == "boot")
41CPPFLAGS+= -DCONS_BE 41CPPFLAGS+= -DCONS_BE
42.elif (${BASE} == "boot_com0") 42.elif (${BASE} == "boot_com0")
43CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 43CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8

cvs diff -r1.15 -r1.16 src/sys/arch/cesfic/conf/Makefile.cesfic (expand / switch to unified diff)

--- 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##
28CESFIC= $S/arch/cesfic 28CESFIC= $S/arch/cesfic
29GENASSYM_CONF= ${CESFIC}/cesfic/genassym.cf 29GENASSYM_CONF= ${CESFIC}/cesfic/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dcesfic 34CPPFLAGS+= -Dcesfic
35CWARNFLAGS+= -Wno-format 35CWARNFLAGS+= -Wno-format
36CFLAGS+= -msoft-float 36CFLAGS+= -msoft-float
37AFLAGS+= -x assembler-with-cpp -traditional-cpp 37AFLAGS+= -x assembler-with-cpp
38AFLAGS+= -Wa,-m68040 -Wa,-m68030 -Wa,-m68851 38AFLAGS+= -Wa,-m68040 -Wa,-m68030 -Wa,-m68851
39 39
40## 40##
41## (3) libkern and compat 41## (3) libkern and compat
42## 42##
43KERN_AS= obj 43KERN_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

cvs diff -r1.87 -r1.88 src/sys/arch/hp300/conf/Makefile.hp300 (expand / switch to unified diff)

--- 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##
28HP300= $S/arch/hp300 28HP300= $S/arch/hp300
29GENASSYM_CONF= ${HP300}/hp300/genassym.cf 29GENASSYM_CONF= ${HP300}/hp300/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dhp300 34CPPFLAGS+= -Dhp300
35CFLAGS+= -msoft-float 35CFLAGS+= -msoft-float
36AFLAGS+= -x assembler-with-cpp -traditional-cpp 36AFLAGS+= -x assembler-with-cpp
37 37
38## 38##
39## (3) libkern and compat 39## (3) libkern and compat
40## 40##
41KERN_AS= obj 41KERN_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
49MD_OBJS= locore.o ${FPSP} 49MD_OBJS= locore.o ${FPSP}

cvs diff -r1.9 -r1.10 src/sys/arch/hpcmips/stand/lcboot/Makefile (expand / switch to unified diff)

--- 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
4ROMICE?= no 4ROMICE?= no
5 5
6S= ${.CURDIR}/../../../../ 6S= ${.CURDIR}/../../../../
7 7
8PROG= lcboot.out 8PROG= lcboot.out
9SREC= lcboot.srec 9SREC= lcboot.srec
10MKMAN= no 10MKMAN= no
11WARNS= 1 11WARNS= 1
12SRCS= start.S main.c com.c conf.c dev_flash.c dev_net.c \ 12SRCS= 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
18STARTOBJS= 18STARTOBJS=
19 19
20NEWVERSWHAT= "L-Card+ Boot" 20NEWVERSWHAT= "L-Card+ Boot"
21VERSIONFILE= ${S}/arch/hpcmips/stand/lcboot/version 21VERSIONFILE= ${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
26COPTS= 26COPTS=
27DBG= 27DBG=
28 28
29AFLAGS+= -D_LOCORE -D_KERNEL 29AFLAGS+= -D_LOCORE -D_KERNEL
30AFLAGS+= -x assembler-with-cpp -traditional-cpp -mips2 -mno-abicalls 30AFLAGS+= -x assembler-with-cpp -mips2 -mno-abicalls
31INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch 31INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch
32CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff 32CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff
33CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy 33CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy
34LD_SCRIPT= lcboot.ldscript 34LD_SCRIPT= lcboot.ldscript
35 35
36.if defined(ROMICE) && (${ROMICE} == "yes") 36.if defined(ROMICE) && (${ROMICE} == "yes")
37CPPFLAGS+= -DROMICE 37CPPFLAGS+= -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

cvs diff -r1.19 -r1.20 src/sys/arch/luna68k/conf/Makefile.luna68k (expand / switch to unified diff)

--- 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##
27LUNA68K= $S/arch/luna68k 27LUNA68K= $S/arch/luna68k
28GENASSYM_CONF= ${LUNA68K}/luna68k/genassym.cf 28GENASSYM_CONF= ${LUNA68K}/luna68k/genassym.cf
29 29
30## 30##
31## (2) compile settings 31## (2) compile settings
32## 32##
33CPPFLAGS+= -Dluna68k 33CPPFLAGS+= -Dluna68k
34CFLAGS+= -msoft-float 34CFLAGS+= -msoft-float
35AFLAGS+= -x assembler-with-cpp -traditional-cpp 35AFLAGS+= -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
47MD_OBJS= locore.o ${FPSP} 47MD_OBJS= locore.o ${FPSP}
48MD_CFILES= 48MD_CFILES=

cvs diff -r1.89 -r1.90 src/sys/arch/mac68k/conf/Makefile.mac68k (expand / switch to unified diff)

--- 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##
28MAC68K= $S/arch/mac68k 28MAC68K= $S/arch/mac68k
29GENASSYM_CONF= ${MAC68K}/mac68k/genassym.cf 29GENASSYM_CONF= ${MAC68K}/mac68k/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dmac68k 34CPPFLAGS+= -Dmac68k
35CFLAGS+= -msoft-float 35CFLAGS+= -msoft-float
36AFLAGS+= -x assembler-with-cpp -traditional-cpp 36AFLAGS+= -x assembler-with-cpp
37 37
38## 38##
39## (3) libkern and compat 39## (3) libkern and compat
40## 40##
41KERN_AS= obj 41KERN_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
49MD_OBJS= locore.o ${FPSP} 49MD_OBJS= locore.o ${FPSP}

cvs diff -r1.55 -r1.56 src/sys/arch/mips/conf/Makefile.mips (expand / switch to unified diff)

--- 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
57LINKFORMAT+= -m elf64btsmip 57LINKFORMAT+= -m elf64btsmip
58SYSTEM_LD_TAIL_EXTRA+= \ 58SYSTEM_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"
63LDFLAGS+= -m elf64ltsmip 63LDFLAGS+= -m elf64ltsmip
64LINKFORMAT+= -m elf64ltsmip 64LINKFORMAT+= -m elf64ltsmip
65SYSTEM_LD_TAIL_EXTRA+= \ 65SYSTEM_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
70AFLAGS+= -mno-abicalls -x assembler-with-cpp -traditional-cpp ${AOPTS} 70AFLAGS+= -mno-abicalls -x assembler-with-cpp ${AOPTS}
71 71
72## 72##
73## (3) libkern and compat 73## (3) libkern and compat
74## 74##
75OPT_MODULAR= %MODULAR% 75OPT_MODULAR= %MODULAR%
76.if !empty(OPT_MODULAR) 76.if !empty(OPT_MODULAR)
77KERN_AS= obj 77KERN_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##
83MD_OBJS= locore.o locore_machdep.o 83MD_OBJS= locore.o locore_machdep.o

cvs diff -r1.8 -r1.9 src/sys/arch/mips/include/Makefile.inc (expand / switch to unified diff)

--- 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
3CFLAGS+= -G 0 -ffixed-23 3CFLAGS+= -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)
7CFLAGS+= -mno-abicalls 7CFLAGS+= -mno-abicalls
8AFLAGS+= -mno-abicalls 8AFLAGS+= -mno-abicalls
9.endif 9.endif
10 10
11.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" 11.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
12CFLAGS+= -msym32 12CFLAGS+= -msym32
13.endif 13.endif
14 14
15AFLAGS+= -x assembler-with-cpp -traditional-cpp ${AOPTS} 15AFLAGS+= -x assembler-with-cpp ${AOPTS}

cvs diff -r1.61 -r1.62 src/sys/arch/mvme68k/conf/Makefile.mvme68k (expand / switch to unified diff)

--- 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)
37CMACHFLAGS= -m68040 37CMACHFLAGS= -m68040
38.else 38.else
39CMACHFLAGS= -m68030 39CMACHFLAGS= -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)
43CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 43CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851
44.else 44.else
45CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851 45CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851
46.endif 46.endif
47.endif 47.endif
48CFLAGS+= ${CMACHFLAGS} -msoft-float 48CFLAGS+= ${CMACHFLAGS} -msoft-float
49AFLAGS+= -x assembler-with-cpp -traditional-cpp 49AFLAGS+= -x assembler-with-cpp
50 50
51## 51##
52## (3) libkern and compat 52## (3) libkern and compat
53## 53##
54KERN_AS= obj 54KERN_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

cvs diff -r1.9 -r1.10 src/sys/arch/mvme68k/stand/bootxx/Makefile (expand / switch to unified diff)

--- 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
4COMPILE.S= $(CC) -x assembler-with-cpp -traditional-cpp \ 4COMPILE.S= $(CC) -x assembler-with-cpp \
5 $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o 5 $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o
6 6
7SRCS= bootxx.c conf.c block_x.S 7SRCS= bootxx.c conf.c block_x.S
8PROG= bootxx 8PROG= bootxx
9LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} 9LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG}
10DPADD= ${LIBS} 10DPADD= ${LIBS}
11SRTOBJ= 11SRTOBJ=
12 12
13.include "../Makefile.booters" 13.include "../Makefile.booters"
14 14
15.include <bsd.prog.mk> 15.include <bsd.prog.mk>

cvs diff -r1.15 -r1.16 src/sys/arch/mvme68k/stand/libbug/Makefile (expand / switch to unified diff)

--- 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
3LIB=bug 3LIB=bug
4 4
5NOPIC= # defined 5NOPIC= # defined
6NOLINT= # defined 6NOLINT= # defined
7NOPROFILE= # defined 7NOPROFILE= # defined
8 8
9S=${.CURDIR}/../../../.. 9S=${.CURDIR}/../../../..
10DIR_SA=$S/lib/libsa 10DIR_SA=$S/lib/libsa
11 11
12SRCS= bugcrt.c delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c \ 12SRCS= 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
14OBJS+= bugstart.o 14OBJS+= bugstart.o
15CLEANFILES+= bugstart.o 15CLEANFILES+= bugstart.o
16 16
17.include "../Makefile.booters" 17.include "../Makefile.booters"
18 18
19# only needed during build 19# only needed during build
20libinstall:: 20libinstall::
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
24bugstart.o: bugstart.s 24bugstart.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
28all realall: lib${LIB}.a 28all 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>

cvs diff -r1.13 -r1.14 src/sys/arch/mvme68k/stand/sboot/Makefile (expand / switch to unified diff)

--- 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
8COMPILE.s= $(CC) -x assembler-with-cpp -traditional-cpp \ 8COMPILE.s= $(CC) -x assembler-with-cpp \
9 $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o 9 $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o
10 10
11RELOC= 0x4000 11RELOC= 0x4000
12SRCS= start.s clock.c console.c etherfun.c le_poll.c \ 12SRCS= start.s clock.c console.c etherfun.c le_poll.c \
13 oc_cksum.s sboot.c 13 oc_cksum.s sboot.c
14SRTOBJ= 14SRTOBJ=
15PROG= sboot 15PROG= sboot
16LIBS= ${LIBSA} 16LIBS= ${LIBSA}
17DPADD= ${LIBS} 17DPADD= ${LIBS}
18CLEANFILES+= sboot.srec 18CLEANFILES+= sboot.srec
19 19
20PROGDEPENDS= ${OBJS} ${LIBS} 20PROGDEPENDS= ${OBJS} ${LIBS}
21PROGLINKOBJS= ${OBJS} ${LIBS} 21PROGLINKOBJS= ${OBJS} ${LIBS}

cvs diff -r1.19 -r1.20 src/sys/arch/news68k/conf/Makefile.news68k (expand / switch to unified diff)

--- 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
29S= ../../../.. 29S= ../../../..
30.endif 30.endif
31NEWS68K= $S/arch/news68k 31NEWS68K= $S/arch/news68k
32GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf 32GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf
33 33
34## 34##
35## (2) compile settings 35## (2) compile settings
36## 36##
37CPPFLAGS+= -Dnews68k 37CPPFLAGS+= -Dnews68k
38CFLAGS+= -msoft-float 38CFLAGS+= -msoft-float
39AFLAGS+= -x assembler-with-cpp -traditional-cpp 39AFLAGS+= -x assembler-with-cpp
40 40
41## 41##
42## (3) libkern and compat 42## (3) libkern and compat
43## 43##
44KERN_AS= obj 44KERN_AS= obj
45 45
46## 46##
47## (4) local objects, compile rules, and dependencies 47## (4) local objects, compile rules, and dependencies
48## 48##
49MD_OBJS= locore.o ${FPSP} 49MD_OBJS= locore.o ${FPSP}
50MD_CFILES= 50MD_CFILES=
51MD_SFILES= ${NEWS68K}/news68k/locore.s 51MD_SFILES= ${NEWS68K}/news68k/locore.s
52 52

cvs diff -r1.29 -r1.30 src/sys/arch/next68k/conf/Makefile.next68k (expand / switch to unified diff)

--- 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##
28NEXT68K= $S/arch/next68k 28NEXT68K= $S/arch/next68k
29GENASSYM_CONF= ${NEXT68K}/next68k/genassym.cf 29GENASSYM_CONF= ${NEXT68K}/next68k/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dnext68k 34CPPFLAGS+= -Dnext68k
35CFLAGS+= -msoft-float 35CFLAGS+= -msoft-float
36AFLAGS+= -x assembler-with-cpp -traditional-cpp 36AFLAGS+= -x assembler-with-cpp
37 37
38## 38##
39## (3) libkern and compat 39## (3) libkern and compat
40## 40##
41KERN_AS= obj 41KERN_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
49MD_OBJS= locore.o ${FPSP} 49MD_OBJS= locore.o ${FPSP}

cvs diff -r1.23 -r1.24 src/sys/arch/prep/stand/boot/Makefile (expand / switch to unified diff)

--- 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
3NOMAN= # defined 3NOMAN= # defined
4 4
5.include <bsd.own.mk> 5.include <bsd.own.mk>
6 6
7COMMON= ${.CURDIR}/../common 7COMMON= ${.CURDIR}/../common
8COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} 8COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR}
9 9
10.PATH: ${.CURDIR}/../boot ${COMMONOBJ} 10.PATH: ${.CURDIR}/../boot ${COMMONOBJ}
11 11
12S= ${.CURDIR}/../../../.. 12S= ${.CURDIR}/../../../..
13L= ${COMMONOBJ}/lib 13L= ${COMMONOBJ}/lib
14 14
15MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage 15MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage
16 16
17BASE?= boot 17BASE?= boot
18PROG= ${BASE} 18PROG= ${BASE}
19NEWVERSWHAT= "BOOT" 19NEWVERSWHAT= "BOOT"
20 20
21SRCS= srt0.s 21SRCS= srt0.s
22SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c 22SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
23SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c 23SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
24SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c  24SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c
25 25
26CFLAGS= -Os -mmultiple -ffreestanding 26CFLAGS= -Os -mmultiple -ffreestanding
27CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes 27CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
28AFLAGS= -x assembler-with-cpp -traditional-cpp 28AFLAGS= -x assembler-with-cpp
29 29
30CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} 30CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S}
31CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN 31CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
32CPPFLAGS+= -D__daddr_t=int32_t 32CPPFLAGS+= -D__daddr_t=int32_t
33#CPPFLAGS+= -DDBMONITOR 33#CPPFLAGS+= -DDBMONITOR
34 34
35.if (${BASE} == "boot") 35.if (${BASE} == "boot")
36CPPFLAGS+= -DCONS_VGA -DVGA_RESET 36CPPFLAGS+= -DCONS_VGA -DVGA_RESET
37.elif (${BASE} == "boot_com0") 37.elif (${BASE} == "boot_com0")
38CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 38CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8
39.elif (${BASE} == "boot_com0_vreset") 39.elif (${BASE} == "boot_com0_vreset")
40CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 -DVGA_RESET 40CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 -DVGA_RESET
41.endif 41.endif

cvs diff -r1.2 -r1.3 src/sys/arch/rs6000/stand/boot/Makefile (expand / switch to unified diff)

--- 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
3NOMAN= # defined 3NOMAN= # defined
4 4
5.include <bsd.own.mk> 5.include <bsd.own.mk>
6 6
7COMMON= ${.CURDIR}/../common 7COMMON= ${.CURDIR}/../common
8COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} 8COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR}
9 9
10.PATH: ${.CURDIR}/../boot ${COMMONOBJ} 10.PATH: ${.CURDIR}/../boot ${COMMONOBJ}
11 11
12S= ${.CURDIR}/../../../.. 12S= ${.CURDIR}/../../../..
13L= ${COMMONOBJ}/lib 13L= ${COMMONOBJ}/lib
14 14
@@ -16,27 +16,27 @@ MKBOOTIMAGE= ${.CURDIR}/../../../powerpc @@ -16,27 +16,27 @@ MKBOOTIMAGE= ${.CURDIR}/../../../powerpc
16 16
17BASE?= boot 17BASE?= boot
18PROG= ${BASE} 18PROG= ${BASE}
19NEWVERSWHAT= "BOOT" 19NEWVERSWHAT= "BOOT"
20 20
21SRCS= srt0.s 21SRCS= srt0.s
22SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c 22SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
23SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c 23SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
24SRCS+= ns16550.c vers.c 24SRCS+= ns16550.c vers.c
25SRCS+= iplcb.c 25SRCS+= iplcb.c
26 26
27CFLAGS= -Os -mmultiple -ffreestanding 27CFLAGS= -Os -mmultiple -ffreestanding
28CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes 28CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
29AFLAGS= -x assembler-with-cpp -traditional-cpp 29AFLAGS= -x assembler-with-cpp
30 30
31CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} 31CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S}
32CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN 32CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
33CPPFLAGS+= -D__daddr_t=int32_t 33CPPFLAGS+= -D__daddr_t=int32_t
34#CPPFLAGS+= -DDBMONITOR 34#CPPFLAGS+= -DDBMONITOR
35CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30 35CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30
36 36
37STRIPFLAG= 37STRIPFLAG=
38BINMODE= 444 38BINMODE= 444
39 39
40# XXX SHOULD NOT NEED TO DEFINE THESE! 40# XXX SHOULD NOT NEED TO DEFINE THESE!
41LIBCRT0= 41LIBCRT0=
42LIBC= 42LIBC=

cvs diff -r1.26 -r1.27 src/sys/arch/sh3/conf/Makefile.sh3 (expand / switch to unified diff)

--- 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##
27THISSH3= $S/arch/${MACHINE} 27THISSH3= $S/arch/${MACHINE}
28SH3= $S/arch/sh3 28SH3= $S/arch/sh3
29GENASSYM_CONF= ${SH3}/sh3/genassym.cf 29GENASSYM_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##
35CPPFLAGS+= -D${MACHINE} 35CPPFLAGS+= -D${MACHINE}
36AFLAGS+= -x assembler-with-cpp -traditional-cpp 36AFLAGS+= -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
38COPTS?= -Os -freorder-blocks 38COPTS?= -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##
47MD_OBJS= locore.o 47MD_OBJS= locore.o
48MD_CFILES= 48MD_CFILES=
49MD_SFILES= ${THISSH3}/${MACHINE}/locore.S 49MD_SFILES= ${THISSH3}/${MACHINE}/locore.S

cvs diff -r1.19 -r1.20 src/sys/arch/sun2/conf/Makefile.sun2 (expand / switch to unified diff)

--- 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##
28SUN2= $S/arch/sun2 28SUN2= $S/arch/sun2
29GENASSYM_CONF= ${SUN2}/sun2/genassym.cf 29GENASSYM_CONF= ${SUN2}/sun2/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dsun2 34CPPFLAGS+= -Dsun2
35CFLAGS+= -msoft-float -fno-defer-pop 35CFLAGS+= -msoft-float -fno-defer-pop
36AFLAGS+= -x assembler-with-cpp -traditional-cpp 36AFLAGS+= -x assembler-with-cpp
37 37
38## 38##
39## (3) libkern and compat 39## (3) libkern and compat
40## 40##
41KERN_AS= obj 41KERN_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
44KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} 44KERNMISCMAKEFLAGS= 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##
49MD_OBJS= locore.o 49MD_OBJS= locore.o

cvs diff -r1.100 -r1.101 src/sys/arch/sun3/conf/Makefile.sun3 (expand / switch to unified diff)

--- 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##
28SUN3= $S/arch/sun3 28SUN3= $S/arch/sun3
29GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf 29GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dsun3 34CPPFLAGS+= -Dsun3
35CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop 35CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop
36AFLAGS+= -x assembler-with-cpp -traditional-cpp 36AFLAGS+= -x assembler-with-cpp
37 37
38## 38##
39## (3) libkern and compat 39## (3) libkern and compat
40## 40##
41KERN_AS= obj 41KERN_AS= obj
42 42
43## 43##
44## (4) local objects, compile rules, and dependencies 44## (4) local objects, compile rules, and dependencies
45## 45##
46MD_OBJS= locore.o 46MD_OBJS= locore.o
47MD_CFILES= 47MD_CFILES=
48MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s 48MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s
49 49

cvs diff -r1.3 -r1.4 src/sys/arch/usermode/conf/Makefile.usermode (expand / switch to unified diff)

--- 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
3MACHINE_ARCH= usermode 3MACHINE_ARCH= usermode
4USETOOLS?= no 4USETOOLS?= no
5NEED_OWN_INSTALL_TARGET?= no 5NEED_OWN_INSTALL_TARGET?= no
6.include <bsd.own.mk> 6.include <bsd.own.mk>
7 7
8SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o 8SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
9 9
10## 10##
11## (1) port identification 11## (1) port identification
12## 12##
13USERMODE= $S/arch/usermode 13USERMODE= $S/arch/usermode
14GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf 14GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf
15 15
16## 16##
17## (2) compile settings 17## (2) compile settings
18## 18##
19DEFCOPTS= -O2 19DEFCOPTS= -O2
20CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree 20CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree
21CPPFLAGS.init_main.c+= -Dmain=kernmain 21CPPFLAGS.init_main.c+= -Dmain=kernmain
22AFLAGS+= -x assembler-with-cpp -traditional-cpp 22AFLAGS+= -x assembler-with-cpp
23 23
24## 24##
25## (3) libkern and compat 25## (3) libkern and compat
26## 26##
27KERN_AS= obj 27KERN_AS= obj
28 28
29## 29##
30## (4) local objects, compile rules, and dependencies 30## (4) local objects, compile rules, and dependencies
31## 31##
32MD_OBJS= 32MD_OBJS=
33MD_CFILES= 33MD_CFILES=
34MD_SFILES= 34MD_SFILES=
35 35

cvs diff -r1.80 -r1.81 src/sys/arch/vax/conf/Makefile.vax (expand / switch to unified diff)

--- 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
22NEED_OWN_INSTALL_TARGET?=no 22NEED_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##
28VAX= $S/arch/vax 28VAX= $S/arch/vax
29GENASSYM_CONF= ${VAX}/vax/genassym.cf 29GENASSYM_CONF= ${VAX}/vax/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -D_VAX_INLINE_ 34CPPFLAGS+= -D_VAX_INLINE_
35AFLAGS+= -x assembler-with-cpp -traditional-cpp -fno-pic 35AFLAGS+= -x assembler-with-cpp -fno-pic
36CFLAGS+= -fno-pic 36CFLAGS+= -fno-pic
37 37
38## 38##
39## (3) libkern and compat 39## (3) libkern and compat
40## 40##
41KERN_AS= obj 41KERN_AS= obj
42 42
43## 43##
44## (4) local objects, compile rules, and dependencies 44## (4) local objects, compile rules, and dependencies
45## 45##
46MD_OBJS= intvec.o subr.o 46MD_OBJS= intvec.o subr.o
47MD_CFILES= 47MD_CFILES=
48MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S 48MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S

cvs diff -r1.61 -r1.62 src/sys/arch/x68k/conf/Makefile.x68k (expand / switch to unified diff)

--- 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
22NEED_OWN_INSTALL_TARGET?=no 22NEED_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##
28X68K= $S/arch/x68k 28X68K= $S/arch/x68k
29GENASSYM_CONF= ${X68K}/x68k/genassym.cf 29GENASSYM_CONF= ${X68K}/x68k/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dx68k 34CPPFLAGS+= -Dx68k
35AFLAGS+= -x assembler-with-cpp -traditional-cpp 35AFLAGS+= -x assembler-with-cpp
36CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 36CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851
37CFLAGS+= ${CMACHFLAGS} -msoft-float 37CFLAGS+= ${CMACHFLAGS} -msoft-float
38 38
39## 39##
40## (3) libkern and compat 40## (3) libkern and compat
41## 41##
42KERN_AS= obj 42KERN_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"