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 (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,541 +1,535 @@ @@ -1,541 +1,535 @@
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:
42 checking dependency style of gcc... none 36 checking dependency style of gcc... none
43 configure: error: no usable dependency style found 37 configure: error: no usable dependency style found
44 Fix it by rebuilding and re-installing env. 38 Fix it by rebuilding and re-installing env.
45 39
4620101119: 4020101119:
47 Recent Xorg updates in xsrc/external/mit/ may cause various build 41 Recent Xorg updates in xsrc/external/mit/ may cause various build
48 or run-time problems. Delete your entire DESTDIR and OBJDIR if you 42 or run-time problems. Delete your entire DESTDIR and OBJDIR if you
49 have any build problems with xsrc, or problems with mismatched 43 have any build problems with xsrc, or problems with mismatched
50 versions between xorg-server and drivers. 44 versions between xorg-server and drivers.
51 45
5220100604: 4620100604:
53 The update of ATF to 0.9 causes old tests written in shell to fail 47 The update of ATF to 0.9 causes old tests written in shell to fail
54 unless they are rebuilt. If you are building with MKUPDATE=yes, 48 unless they are rebuilt. If you are building with MKUPDATE=yes,
55 you need to clean the src/external/bsd/atf/tests/ and the src/tests/ 49 you need to clean the src/external/bsd/atf/tests/ and the src/tests/
56 trees by hand. 50 trees by hand.
57 51
5820100522: 5220100522:
59 Recent Xorg updates in xsrc/external/mit/ will cause various build 53 Recent Xorg updates in xsrc/external/mit/ will cause various build
60 problems. Delete your entire DESTDIR and OBJDIR if you have any 54 problems. Delete your entire DESTDIR and OBJDIR if you have any
61 build problems with xsrc. 55 build problems with xsrc.
62 56
6320100522: 5720100522:
64 private section of <ctype.h> was splitted, and now mklocale(1) 58 private section of <ctype.h> was splitted, and now mklocale(1)
65 include ctype_local.h, so you have to make cleandir in tools/mklocale. 59 include ctype_local.h, so you have to make cleandir in tools/mklocale.
66 60
6720100520: 6120100520:
68 The location of the xkb compiled descriptions has changed. Please 62 The location of the xkb compiled descriptions has changed. Please
69 remove usr/X11R7/lib/X11/xkb/compiled from your $DESTDIR. 63 remove usr/X11R7/lib/X11/xkb/compiled from your $DESTDIR.
70 64
7120100222: 6520100222:
72 The shared objects file extension has been changed from .so to 66 The shared objects file extension has been changed from .so to
73 .pico, in order to avoid conflicts with shared libraries names 67 .pico, in order to avoid conflicts with shared libraries names
74 libXX.so. All now stale regular .so files can be removed from 68 libXX.so. All now stale regular .so files can be removed from
75 your object directories. 69 your object directories.
76 70
7720100204: 7120100204:
78 The termcap database has been removed from the sources, 72 The termcap database has been removed from the sources,
79 but has not been marked obsolete so it is not removed 73 but has not been marked obsolete so it is not removed
80 from the system when upgrading. 74 from the system when upgrading.
81 As such, you will need to remove them from your object 75 As such, you will need to remove them from your object
82 and destination directories. 76 and destination directories.
83 77
8420091101: 7820091101:
85 After updating, it may be necessary to make the 'cleandir' 79 After updating, it may be necessary to make the 'cleandir'
86 target in src/tools/yacc/ and in src/usr.bin/yacc/ before a 80 target in src/tools/yacc/ and in src/usr.bin/yacc/ before a
87 'build.sh -u tools' or 'build.sh -u distribution'. Ditto 81 'build.sh -u tools' or 'build.sh -u distribution'. Ditto
88 src/tools/lex/ and src/usr.bin/lex/. 82 src/tools/lex/ and src/usr.bin/lex/.
89 83
9020091001: 8420091001:
91 On amd64 you must rebuild tools (to get the new binutils) 85 On amd64 you must rebuild tools (to get the new binutils)
92 before building a kernel, or the build fails on cpufunc.S. 86 before building a kernel, or the build fails on cpufunc.S.
93 87
9420091001: 8820091001:
95 An error will create a ./usr/X11R7/lib/X11/xkb/compiled/xkb 89 An error will create a ./usr/X11R7/lib/X11/xkb/compiled/xkb
96 symlink, failing the build. Delete the link, and the subdir 90 symlink, failing the build. Delete the link, and the subdir
97 it is in, and retry your build. 91 it is in, and retry your build.
98 92
9920090718: 9320090718:
100 libc build changed so that strchr() provides the extra entry 94 libc build changed so that strchr() provides the extra entry
101 point for index(). Update build of libc.a (and libc_pic.a) 95 point for index(). Update build of libc.a (and libc_pic.a)
102 may fail because the archive contains the unwanted index.o. 96 may fail because the archive contains the unwanted index.o.
103 (Similarly for strrchr() and rindex().) 97 (Similarly for strrchr() and rindex().)
104 98
10520090709: 9920090709:
106 Native Xorg was upgraded again. Builds will probably fail again 100 Native Xorg was upgraded again. Builds will probably fail again
107 without a clean objdir, at least for src/external/mit/xorg. 101 without a clean objdir, at least for src/external/mit/xorg.
108 102
10920090616: 10320090616:
110 Native Xorg was upgraded. Builds will need a clean objdir for 104 Native Xorg was upgraded. Builds will need a clean objdir for
111 src/external/mit/xorg. Upgrading a system from sets will not 105 src/external/mit/xorg. Upgrading a system from sets will not
112 work properly yet as the /usr/X11R7/lib/X11/xkb/symbols/pc 106 work properly yet as the /usr/X11R7/lib/X11/xkb/symbols/pc
113 subdirectory has been changed into a file, and this needs to 107 subdirectory has been changed into a file, and this needs to
114 be manually "rm -r"'ed before installing xbase.tgz. 108 be manually "rm -r"'ed before installing xbase.tgz.
115 109
11620090501: 11020090501:
117 Several new functions were added to string.h/libc, and this 111 Several new functions were added to string.h/libc, and this
118 can cause autoconf problems during the tool build for people 112 can cause autoconf problems during the tool build for people
119 who fail to clean out their tools objects properly. If you 113 who fail to clean out their tools objects properly. If you
120 note messages about stpcpy, stpncpy or strnlen accompanying a 114 note messages about stpcpy, stpncpy or strnlen accompanying a
121 failure during the tool build, clean out all your tools 115 failure during the tool build, clean out all your tools
122 objects and start again. 116 objects and start again.
123 117
12420090325: 11820090325:
125 The i386 port was switched to i486 default toolchain. This requires 119 The i386 port was switched to i486 default toolchain. This requires
126 cleaning your src/tools directory and $TOOLDIR and rebuilding them. 120 cleaning your src/tools directory and $TOOLDIR and rebuilding them.
127 121
12820090126: 12220090126:
129 The __posix_fadvise50 system call changed assembly stub type. You 123 The __posix_fadvise50 system call changed assembly stub type. You
130 need to 'rm -f __posix_fadvise50.*' in the libc build directory 124 need to 'rm -f __posix_fadvise50.*' in the libc build directory
131 to avoid using the old assembly stub. 125 to avoid using the old assembly stub.
132 126
13320090202: 12720090202:
134 pkg_install now depends on the pkgdb cache for automatic conflict 128 pkg_install now depends on the pkgdb cache for automatic conflict
135 detection. It is recommented to rebuild the cache with 129 detection. It is recommented to rebuild the cache with
136 ``pkg_admin rebuild''. 130 ``pkg_admin rebuild''.
137 131
13820090110: 13220090110:
139 time_t and dev_t have been bumped to 64 bit quantities. To upgrade: 133 time_t and dev_t have been bumped to 64 bit quantities. To upgrade:
140 1. Make sure your kernel has COMPAT_50 in it. Build and install. 134 1. Make sure your kernel has COMPAT_50 in it. Build and install.
141 This is needed even in the MODULAR kernel because there is 135 This is needed even in the MODULAR kernel because there is
142 conditionally compiled code in rtsock.c. 136 conditionally compiled code in rtsock.c.
143 2. make sure build.sh completes and the binaries in a chroot work 137 2. make sure build.sh completes and the binaries in a chroot work
144 before installing. 138 before installing.
145 3. If you don't use build.sh and you build directly to root, and 139 3. If you don't use build.sh and you build directly to root, and
146 your build breaks in the middle, don't despair. Make sure headers 140 your build breaks in the middle, don't despair. Make sure headers
147 are installed properly, and start building libraries first libc 141 are installed properly, and start building libraries first libc
148 and libutil, install them and then continue building all the 142 and libutil, install them and then continue building all the
149 libraries in src/lib and src/gnu/lib and install them. Once 143 libraries in src/lib and src/gnu/lib and install them. Once
150 the new libraries are installed, you can restart the build. 144 the new libraries are installed, you can restart the build.
151 4. If you compile packages and you notice link time warnings, 145 4. If you compile packages and you notice link time warnings,
152 rebuild the required packages to update their shared libraries. 146 rebuild the required packages to update their shared libraries.
153 Any package you rebuild will require rebuilding all the packages 147 Any package you rebuild will require rebuilding all the packages
154 that depend on it. 148 that depend on it.
155 5. Next time you run pwd_mkdb with the new binary, the file 149 5. Next time you run pwd_mkdb with the new binary, the file
156 will be upgraded and it will not be backwards compatible. 150 will be upgraded and it will not be backwards compatible.
157 6. The utmpx/wtmpx files (/var/run/utmpx and /var/log/wtmpx, see 151 6. The utmpx/wtmpx files (/var/run/utmpx and /var/log/wtmpx, see
158 lastlogx(5)) have been versioned, and there is a heuristic 152 lastlogx(5)) have been versioned, and there is a heuristic
159 for utmp. You are better off removing the old files after 153 for utmp. You are better off removing the old files after
160 upgrading. The automated clearing of /var/run during 154 upgrading. The automated clearing of /var/run during
161 boot, and the automated rotating of files in /var/log by 155 boot, and the automated rotating of files in /var/log by
162 newsyslog(8), may mean that you do not have to remove the 156 newsyslog(8), may mean that you do not have to remove the
163 files manually. 157 files manually.
164 7. The optional accounting file (/var/account/acct, see 158 7. The optional accounting file (/var/account/acct, see
165 accton(8)) has not been versioned, and will need to be 159 accton(8)) has not been versioned, and will need to be
166 removed. The automatic rotation of the accounting file by 160 removed. The automatic rotation of the accounting file by
167 /etc/daily limits the bad consequences of failure to remove 161 /etc/daily limits the bad consequences of failure to remove
168 the file. 162 the file.
169 8. Application software that writes time_t to binary files on 163 8. Application software that writes time_t to binary files on
170 disk will break or need attention. Most notably: if you are 164 disk will break or need attention. Most notably: if you are
171 using PostgreSQL < 8.4, you need to dump your databases, 165 using PostgreSQL < 8.4, you need to dump your databases,
172 rebuild PostgreSQL with the new time_t, then restore. 166 rebuild PostgreSQL with the new time_t, then restore.
173 167
17420081219: 16820081219:
175 config(1) has been updated, and one of the files it creates - 169 config(1) has been updated, and one of the files it creates -
176 swapnetbsd.o - has changed format. You need to rebuild config 170 swapnetbsd.o - has changed format. You need to rebuild config
177 (done automatically by build.sh) and then you need to rerun 171 (done automatically by build.sh) and then you need to rerun
178 config on all kernel configuration files before rebuilding those 172 config on all kernel configuration files before rebuilding those
179 kernels. 173 kernels.
180 174
18120081205: 17520081205:
182 If you build with MKX11=no, you should remove /etc/rc.d/xdm and 176 If you build with MKX11=no, you should remove /etc/rc.d/xdm and
183 /etc/rc.d/xfs from DESTDIR because those files were moved to the xetc 177 /etc/rc.d/xfs from DESTDIR because those files were moved to the xetc
184 set and will appear as extra files for MKX11=no update builds. 178 set and will appear as extra files for MKX11=no update builds.
185 179
18620081122: 18020081122:
187 On i386, various kernel options(4) in GENERIC including 181 On i386, various kernel options(4) in GENERIC including
188 file systems have been disabled and moved into kernel modules. 182 file systems have been disabled and moved into kernel modules.
189 Before trying a new GENERIC kernel, you have to prepare the 183 Before trying a new GENERIC kernel, you have to prepare the
190 following files as well as a new GENERIC kernel: 184 following files as well as a new GENERIC kernel:
191 185
192 - build and install kernel modules from src/sys/modules 186 - build and install kernel modules from src/sys/modules
193 187
194 - install the latest bootloader, which will load a module 188 - install the latest bootloader, which will load a module
195 for the file system from which the kernel is loaded automatically 189 for the file system from which the kernel is loaded automatically
196 190
197 If you have to load your kernel from a file system which is not of 191 If you have to load your kernel from a file system which is not of
198 the same type as the root file system, you have to load the necessary 192 the same type as the root file system, you have to load the necessary
199 file system module manually on the boot prompt or in the boot.cfg file. 193 file system module manually on the boot prompt or in the boot.cfg file.
200 194
20120080827: 19520080827:
202 If you built and installed a libc from sources between 196 If you built and installed a libc from sources between
203 2008/08/20 and 2008/08/26 you got a broken strtouq(3) 197 2008/08/20 and 2008/08/26 you got a broken strtouq(3)
204 which results in false errors reported by lint(1). 198 which results in false errors reported by lint(1).
205 Since this breaks the libc build itself, manual help is 199 Since this breaks the libc build itself, manual help is
206 needed -- lint must be disabled temporarily, e.g.: 200 needed -- lint must be disabled temporarily, e.g.:
207 $ (cd lib/libc && make MKLINT=no dependall install) 201 $ (cd lib/libc && make MKLINT=no dependall install)
208 202
20920080813: 20320080813:
210 MKDEBUG build was broken because the .depend files did not know 204 MKDEBUG build was broken because the .depend files did not know
211 about .go files. You need to remove all .depend files and rebuild. 205 about .go files. You need to remove all .depend files and rebuild.
212 206
21320080802: 20720080802:
214 A regression in binary compatibility for pthread_mutex_t has 208 A regression in binary compatibility for pthread_mutex_t has
215 been fixed. Unfortunately, the price is breaking compatibility 209 been fixed. Unfortunately, the price is breaking compatibility
216 for -current. 210 for -current.
217 211
218 Threaded programs (using libpthread) and C++ programs (using 212 Threaded programs (using libpthread) and C++ programs (using
219 libstdc++) compiled after 20070907 and before 20080802 need to 213 libstdc++) compiled after 20070907 and before 20080802 need to
220 be recompiled. 214 be recompiled.
221 215
222 One way to find affected pkgsrc packages: 216 One way to find affected pkgsrc packages:
223 217
224 $ grep REQUIRES=/usr/lib/libpthread /var/db/pkg/*/+BUILD_INFO 218 $ grep REQUIRES=/usr/lib/libpthread /var/db/pkg/*/+BUILD_INFO
225 $ grep REQUIRES=/usr/lib/libstdc++ /var/db/pkg/*/+BUILD_INFO 219 $ grep REQUIRES=/usr/lib/libstdc++ /var/db/pkg/*/+BUILD_INFO
226 220
22720080731: 22120080731:
228 WAPBL (metadata journaling support) has been added, but at this 222 WAPBL (metadata journaling support) has been added, but at this
229 time isn't backwards compatible with pre-WAPBL aware kernels 223 time isn't backwards compatible with pre-WAPBL aware kernels
230 and userland (fsck_ffs in particular). Please make sure you 224 and userland (fsck_ffs in particular). Please make sure you
231 don't use a journaled filesystem with an older kernel/userland, 225 don't use a journaled filesystem with an older kernel/userland,
232 especially an uncleanly mounted journaled filesystem. WAPBL 226 especially an uncleanly mounted journaled filesystem. WAPBL
233 also requires the super block to be in the UFS2 format. You 227 also requires the super block to be in the UFS2 format. You
234 can use fsck_ffs -c 4 to update the superblock format. 228 can use fsck_ffs -c 4 to update the superblock format.
235 229
23620080721: 23020080721:
237 Assembler warnings are now fatal if $WARNS>0 and $NOGCCERROR 231 Assembler warnings are now fatal if $WARNS>0 and $NOGCCERROR
238 isn't defined. 232 isn't defined.
239 233
24020080531: 23420080531:
241 The ioctl number of DRVSUSPENDDEV command on /dev/drvctl changed  235 The ioctl number of DRVSUSPENDDEV command on /dev/drvctl changed
242 from 125 (conflicted with DRVCTLCOMMAND) to 129. The drvctl(8) 236 from 125 (conflicted with DRVCTLCOMMAND) to 129. The drvctl(8)
243 utility needs to be rebuilt and reinstalled as older binaries 237 utility needs to be rebuilt and reinstalled as older binaries
244 won't work correctly. The following sequence of commands: 238 won't work correctly. The following sequence of commands:
245 239
246 $ (cd sys/sys/ && nbmake-$arch includes) 240 $ (cd sys/sys/ && nbmake-$arch includes)
247 $ (cd sbin/drvctl/ && nbmake-$arch clean) 241 $ (cd sbin/drvctl/ && nbmake-$arch clean)
248 $ (cd sbin/drvctl/ && nbmake-$arch all) 242 $ (cd sbin/drvctl/ && nbmake-$arch all)
249 243
250 leaves new drvctl utility in sbin/drvctl build directory. 244 leaves new drvctl utility in sbin/drvctl build directory.
251 245
25220080503: 24620080503:
253 The <bsd.lib.mk> variable MKPRIVATELIB was renamed to LIBISPRIVATE. 247 The <bsd.lib.mk> variable MKPRIVATELIB was renamed to LIBISPRIVATE.
254 248
25520080521: 24920080521:
256 For a while, unprivileged UPDATE builds would fail to 250 For a while, unprivileged UPDATE builds would fail to
257 succeed at the checkflist stage, complaining that 251 succeed at the checkflist stage, complaining that
258 ${DESTDIR}/stand/<arch>/ did not exist. A fix for this 252 ${DESTDIR}/stand/<arch>/ did not exist. A fix for this
259 problem was committed to share/mk/bsd.kmodule.mk, revision 1.9. 253 problem was committed to share/mk/bsd.kmodule.mk, revision 1.9.
260 If you already hit this problem, update the .mk file, 254 If you already hit this problem, update the .mk file,
261 remove ${DESTDIR}/stand/<arch>, and re-run the build. 255 remove ${DESTDIR}/stand/<arch>, and re-run the build.
262 256
26320080303: 25720080303:
264 Linker warnings are now fatal if $WARNS>0. 258 Linker warnings are now fatal if $WARNS>0.
265 259
26620080126: 26020080126:
267 The posix_fadvise system call has been changed from an assembly 261 The posix_fadvise system call has been changed from an assembly
268 stub, to a c file that calls an assembly stub. You need to 262 stub, to a c file that calls an assembly stub. You need to
269 'rm -f posix_fadvise.* .depend' in the libc build directory to 263 'rm -f posix_fadvise.* .depend' in the libc build directory to
270 avoid using the old assembly stub. 264 avoid using the old assembly stub.
271 265
27220071209: 26620071209:
273 The acpiec(4) driver has been split into two attachments. If you 267 The acpiec(4) driver has been split into two attachments. If you
274 get ACPI errors before the attachment, please update your kernel 268 get ACPI errors before the attachment, please update your kernel
275 configuration file appropriately or see GENERIC for more details. 269 configuration file appropriately or see GENERIC for more details.
276 270
27720071115: 27120071115:
278 The it(4) driver has been renamed to itesio(4) and the old port 272 The it(4) driver has been renamed to itesio(4) and the old port
279 argument specified in the kernel configuration file is not valid 273 argument specified in the kernel configuration file is not valid
280 anymore. The itesio(4) driver now uses the Super I/O address port 274 anymore. The itesio(4) driver now uses the Super I/O address port
281 rather than the EC address port. Please update your kernel 275 rather than the EC address port. Please update your kernel
282 configuration file appropriately or see GENERIC for more details. 276 configuration file appropriately or see GENERIC for more details.
283 277
28420071028: 27820071028:
285 The pccons(4) driver has been removed from the NetBSD/shark port. 279 The pccons(4) driver has been removed from the NetBSD/shark port.
286 You need to update any custom kernel configuration file you have 280 You need to update any custom kernel configuration file you have
287 to remove any references to pccons (which includes removing the 281 to remove any references to pccons (which includes removing the
288 now useless XSERVER option) and replace them with the correct 282 now useless XSERVER option) and replace them with the correct
289 entries for the wscons driver. See the GENERIC configuration file 283 entries for the wscons driver. See the GENERIC configuration file
290 for more details. 284 for more details.
291 285
29220070913: 28620070913:
293 A latent bug in dhclient/dhcpd that caused it to be unable to 287 A latent bug in dhclient/dhcpd that caused it to be unable to
294 enumerate interfaces was fixed. The bug began to cause 288 enumerate interfaces was fixed. The bug began to cause
295 problems after 20070911 when the kernel's SIOCGIFCONF 289 problems after 20070911 when the kernel's SIOCGIFCONF
296 implementation was repaired. From 20070529 to 20070911 racoon 290 implementation was repaired. From 20070529 to 20070911 racoon
297 could not enumerate interfaces. (These are noted because 291 could not enumerate interfaces. (These are noted because
298 normal kernel/userspace version matching hygiene is not 292 normal kernel/userspace version matching hygiene is not
299 sufficient to avoid this problem.) Ensure that both kernel 293 sufficient to avoid this problem.) Ensure that both kernel
300 and userland are from after 20070913. 294 and userland are from after 20070913.
301 295
30220070703: 29620070703:
303 nbinstall has been renamed ${MACHINE_GNU_ARCH}-install. It 297 nbinstall has been renamed ${MACHINE_GNU_ARCH}-install. It
304 calls the target-specific strip program, and the logic to pass 298 calls the target-specific strip program, and the logic to pass
305 down STRIP from make has been removed. This requires a 299 down STRIP from make has been removed. This requires a
306 re-installation of tools. 300 re-installation of tools.
307 301
30820070422: 30220070422:
309 The way OS emulations lookup filenames inside the emulation root 303 The way OS emulations lookup filenames inside the emulation root
310 has been changed. Rather than modify the pathname (and copy back 304 has been changed. Rather than modify the pathname (and copy back
311 to userspace) namei() and lookup() directly check the emulation 305 to userspace) namei() and lookup() directly check the emulation
312 root. One side effect is that absolute symlinks inside the emulated 306 root. One side effect is that absolute symlinks inside the emulated
313 root file system will be relative to that file system - unless they 307 root file system will be relative to that file system - unless they
314 start /../ this is useful when the emulated root is a real install 308 start /../ this is useful when the emulated root is a real install
315 that has such links. 309 that has such links.
316 This might affect symlinks that have been added to reference outside 310 This might affect symlinks that have been added to reference outside
317 the emulated root. 311 the emulated root.
318 312
31920070412: 31320070412:
320 The pckbc driver on sgimips IP32 has been removed. Use macekbc 314 The pckbc driver on sgimips IP32 has been removed. Use macekbc
321 instead. See the GENERIC32_IP3x kernel configuration for an 315 instead. See the GENERIC32_IP3x kernel configuration for an
322 example. 316 example.
323 317
32420070319: 31820070319:
325 src/lib/libc/Makefile revision 1.129 broke libc and ld.elf_so 319 src/lib/libc/Makefile revision 1.129 broke libc and ld.elf_so
326 on many platforms due to incorrect flags settings. If you 320 on many platforms due to incorrect flags settings. If you
327 updated and built after about 20070315, do "nbmake-$arch 321 updated and built after about 20070315, do "nbmake-$arch
328 cleandir" in src/lib/libc and src/libexec/ld.elf_so to force a 322 cleandir" in src/lib/libc and src/libexec/ld.elf_so to force a
329 rebuild of object files that might have been built 323 rebuild of object files that might have been built
330 incorrectly, and ensure that you have at least 324 incorrectly, and ensure that you have at least
331 src/lib/libc/Makefile 1.130. 325 src/lib/libc/Makefile 1.130.
332 326
33320070210:  32720070210:
334 src/sys/sys/{sa.h,savar.h} were removed. 328 src/sys/sys/{sa.h,savar.h} were removed.
335 find ${OBJDIR} \( -name .depend -o -name '*.d' \) -print \ 329 find ${OBJDIR} \( -name .depend -o -name '*.d' \) -print \
336 | xargs egrep -l '/sa.h|/savar.h' | xargs rm 330 | xargs egrep -l '/sa.h|/savar.h' | xargs rm
337 will allow dependencies on those files to get get rebuilt 331 will allow dependencies on those files to get get rebuilt
338 332
33920070209: 33320070209:
340 The threading model was changed when the newlock2 branch 334 The threading model was changed when the newlock2 branch
341 was merged to NetBSD-current. If you boot with a new 335 was merged to NetBSD-current. If you boot with a new
342 kernel (version 4.99.10), then you also need a new pthread 336 kernel (version 4.99.10), then you also need a new pthread
343 library (/usr/lib/libpthread.so.0.7). If you boot with 337 library (/usr/lib/libpthread.so.0.7). If you boot with
344 an old kernel, then you need the old pthread library 338 an old kernel, then you need the old pthread library
345 (/usr/lib/libpthread.so.0.6). Provided you keep the kernel and 339 (/usr/lib/libpthread.so.0.6). Provided you keep the kernel and
346 the pthread library in sync, old threaded applications should 340 the pthread library in sync, old threaded applications should
347 continue to work with an old or new kernel. Note that named(8) 341 continue to work with an old or new kernel. Note that named(8)
348 is the only threaded application in the base system. 342 is the only threaded application in the base system.
349 343
35020061214: 34420061214:
351 Following the move of string_to_flags() and flags_to_string() 345 Following the move of string_to_flags() and flags_to_string()
352 from the bin/ls/ sources to libutil, users doing UPDATE builds 346 from the bin/ls/ sources to libutil, users doing UPDATE builds
353 will need to do a "make cleandir" in 347 will need to do a "make cleandir" in
354 tools/mtree/, tools/makefs/, tools/binstall/, tools/pax/, 348 tools/mtree/, tools/makefs/, tools/binstall/, tools/pax/,
355 bin/pax/, bin/ls/, usr.sbin/mtree/, usr.sbin/makefs/, 349 bin/pax/, bin/ls/, usr.sbin/mtree/, usr.sbin/makefs/,
356 usr.bin/xinstall/, libexec/ftpd/, rescue/, as well 350 usr.bin/xinstall/, libexec/ftpd/, rescue/, as well
357 as the installation images in distrib/ 351 as the installation images in distrib/
358 in order to excise stale references to the old stat_flags.h header 352 in order to excise stale references to the old stat_flags.h header
359 file in the ls sources -- stat_flags.h has been removed. 353 file in the ls sources -- stat_flags.h has been removed.
360 354
36120061108: 35520061108:
362 The configure script used in the src/tools/gcc compiler has been 356 The configure script used in the src/tools/gcc compiler has been
363 changed to indicate that our libc has ssp support built-in and 357 changed to indicate that our libc has ssp support built-in and
364 does not depend on -lssp and -lssp-nonshared. You'll need to 358 does not depend on -lssp and -lssp-nonshared. You'll need to
365 make clean in src/tools/gcc first to rebuild the compiler. 359 make clean in src/tools/gcc first to rebuild the compiler.
366 360
36720061009: 36120061009:
368 The sysctl variables net.inet{,6}.tcp{,6}.newreno are no longer 362 The sysctl variables net.inet{,6}.tcp{,6}.newreno are no longer
369 available. Use net.inet{,6}.tcp{,6}.congctl.selected instead. 363 available. Use net.inet{,6}.tcp{,6}.congctl.selected instead.
370 364
37120060814: 36520060814:
372 The vt, vidcconsole, kbd, and rpckbd drivers on acorn32 have been 366 The vt, vidcconsole, kbd, and rpckbd drivers on acorn32 have been
373 withdrawn. Use vidcvideo and pckbd instead. See the GENERIC 367 withdrawn. Use vidcvideo and pckbd instead. See the GENERIC
374 kernel configuration for an example. X servers from the last 368 kernel configuration for an example. X servers from the last
375 few years should cope. 369 few years should cope.
376 370
37720060703: 37120060703:
378 MPACPI is no more. We always configure PCI interrupts using ACPI 372 MPACPI is no more. We always configure PCI interrupts using ACPI
379 if we have an ACPI kernel. The option MPACPI_SCANPCI has been renamed 373 if we have an ACPI kernel. The option MPACPI_SCANPCI has been renamed
380 to ACPI_SCANPCI. Thanks to work from fvdl. 374 to ACPI_SCANPCI. Thanks to work from fvdl.
381 375
38220060627: 37620060627:
383 socket(2) has changed, and its system call has been versioned. 377 socket(2) has changed, and its system call has been versioned.
384 For userlands with the old version of socket(2), make sure that 378 For userlands with the old version of socket(2), make sure that
385 your kernel has 'options COMPAT_30' set, or else 'bad system call' 379 your kernel has 'options COMPAT_30' set, or else 'bad system call'
386 errors will result. 380 errors will result.
387 381
388Hints for a more successful build: 382Hints for a more successful build:
389^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 383^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
390 Use build.sh, but do not use its "expert mode": 384 Use build.sh, but do not use its "expert mode":
391 This will automatically build the tools in the 385 This will automatically build the tools in the
392 correct order, and it will keep the tools and the 386 correct order, and it will keep the tools and the
393 new build products from interfering with the running 387 new build products from interfering with the running
394 system. This will allow you to ignore most of the 388 system. This will allow you to ignore most of the
395 other advice in this file. 389 other advice in this file.
396 Build a new kernel first: 390 Build a new kernel first:
397 This makes sure that any new system calls or features 391 This makes sure that any new system calls or features
398 expected by the new userland will be present. This 392 expected by the new userland will be present. This
399 helps to avoid critical errors when upgrading. 393 helps to avoid critical errors when upgrading.
400 Use object directories: 394 Use object directories:
401 This helps to keep stale object 395 This helps to keep stale object
402 files from polluting the build if a Makefile "forgets" 396 files from polluting the build if a Makefile "forgets"
403 about one. It also makes it easier to clean up after 397 about one. It also makes it easier to clean up after
404 a build. It's also necessary if you want to use the 398 a build. It's also necessary if you want to use the
405 same source tree for multiple machines. 399 same source tree for multiple machines.
406 To use object directories with build.sh: 400 To use object directories with build.sh:
407 a) invoke build.sh with the "-M" or "-O" options. 401 a) invoke build.sh with the "-M" or "-O" options.
408 To use object directories without using build.sh: 402 To use object directories without using build.sh:
409 a) cd /usr/src ; make cleandir 403 a) cd /usr/src ; make cleandir
410 b) Add "OBJMACHINE=yes" to /etc/mk.conf 404 b) Add "OBJMACHINE=yes" to /etc/mk.conf
411 c) Add "MKOBJDIRS=yes" to /etc/mk.conf 405 c) Add "MKOBJDIRS=yes" to /etc/mk.conf
412 d) cd /usr/src ; make build 406 d) cd /usr/src ; make build
413 Note that running "make obj" in a directory will create 407 Note that running "make obj" in a directory will create
414 in obj.$MACHINE directory. 408 in obj.$MACHINE directory.
415 Build to a DESTDIR: 409 Build to a DESTDIR:
416 This helps to keep old installed files (especially libraries) 410 This helps to keep old installed files (especially libraries)
417 from interfering with the new build. 411 from interfering with the new build.
418 To build to a DESTDIR with build.sh, use the "-D" option. 412 To build to a DESTDIR with build.sh, use the "-D" option.
419 To build to a DESTDIR without using build.sh, set the DESTDIR 413 To build to a DESTDIR without using build.sh, set the DESTDIR
420 environment variable before running make build. It should be 414 environment variable before running make build. It should be
421 set to the pathname of an initially empty directory. 415 set to the pathname of an initially empty directory.
422 Problems: if you do not use build.sh, you might need to 416 Problems: if you do not use build.sh, you might need to
423 update critical utilities without using DESTDIR since 417 update critical utilities without using DESTDIR since
424 nothing is executed from what is installed in DESTDIR. 418 nothing is executed from what is installed in DESTDIR.
425 (See critical utils, below.) 419 (See critical utils, below.)
426 Build often: 420 Build often:
427 This keeps critical utilities current enough to not choke 421 This keeps critical utilities current enough to not choke
428 on any other part of the source tree that depends on up to 422 on any other part of the source tree that depends on up to
429 date functionality. If you use build.sh, you should not have 423 date functionality. If you use build.sh, you should not have
430 this problem. 424 this problem.
431  425
432What to do if things don't work: 426What to do if things don't work:
433^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 427^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
434When things don't work there is usually a few things that commonly 428When things don't work there is usually a few things that commonly
435should be done. 429should be done.
436 1) make includes 430 1) make includes
437 This should be done automatically by make build. 431 This should be done automatically by make build.
438 2) cd share/mk && make install 432 2) cd share/mk && make install
439 Again, automatically done by make build. 433 Again, automatically done by make build.
440 434
441Failsafe rebuild of a small part of the tree: 435Failsafe rebuild of a small part of the tree:
442^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 436^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
443To make sure you rebuild something correctly you want to do 437To make sure you rebuild something correctly you want to do
444something like the following: 438something like the following:
445 1) Make sure the includes and .mk files are up to date. 439 1) Make sure the includes and .mk files are up to date.
446 2) Make sure any program used to build the particular 440 2) Make sure any program used to build the particular
447 utility is up to date. (yacc, lex, etc...) 441 utility is up to date. (yacc, lex, etc...)
448 3) cd ...path/to/util... 442 3) cd ...path/to/util...
449 make cleandir 443 make cleandir
450 rm ...all obj directories... 444 rm ...all obj directories...
451 make cleandir # yes, again 445 make cleandir # yes, again
452 make obj 446 make obj
453 make depend && make 447 make depend && make
454 448
455Failsafe rebuild of the entire tree: 449Failsafe rebuild of the entire tree:
456^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 450^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
457If you really want to make sure the source tree is clean and 451If you really want to make sure the source tree is clean and
458ready for a build try the following. Note that sourcing /etc/mk.conf 452ready for a build try the following. Note that sourcing /etc/mk.conf
459(a make(1) Makefile) in this manner is not right, and will not work 453(a make(1) Makefile) in this manner is not right, and will not work
460for anyone who uses any make(1) features in /etc/mk.conf. 454for anyone who uses any make(1) features in /etc/mk.conf.
461 455
462---cut here--- 456---cut here---
463#!/bin/sh 457#!/bin/sh
464. /etc/mk.conf 458. /etc/mk.conf
465 459
466if [ -z $NETBSDSRCDIR ] ; then 460if [ -z $NETBSDSRCDIR ] ; then
467 NETBSDSRCDIR=/usr/src 461 NETBSDSRCDIR=/usr/src
468fi 462fi
469if [ \! -d $NETBSDSRCDIR ] ; then 463if [ \! -d $NETBSDSRCDIR ] ; then
470 echo Unable to find sources 464 echo Unable to find sources
471 exit 1 465 exit 1
472fi 466fi
473find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \; 467find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \;
474 468
475if [ -z $BSDOBJDIR ] ; then 469if [ -z $BSDOBJDIR ] ; then
476 BSDOBJDIR=/usr/obj 470 BSDOBJDIR=/usr/obj
477fi 471fi
478if [ -d $BSDOBJDIR ] ; then 472if [ -d $BSDOBJDIR ] ; then
479 rm -rf $BSDOBJDIR 473 rm -rf $BSDOBJDIR
480fi 474fi
481 475
482cd $NETBSDSRCDIR && make cleandir 476cd $NETBSDSRCDIR && make cleandir
483 477
484---cut here--- 478---cut here---
485 479
486Critical utilities: 480Critical utilities:
487^^^^^^^^^^^^^^^^^^^ 481^^^^^^^^^^^^^^^^^^^
488 usr.bin/compile_et 482 usr.bin/compile_et
489 usr.bin/make 483 usr.bin/make
490 usr.bin/yacc 484 usr.bin/yacc
491 usr.bin/lex 485 usr.bin/lex
492 usr.bin/xlint 486 usr.bin/xlint
493 usr.bin/config 487 usr.bin/config
494 488
495Other problems and possible solutions: 489Other problems and possible solutions:
496^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 490^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
497Symptom:Complaints involving a Makefile. 491Symptom:Complaints involving a Makefile.
498Fix: Rebuild usr.bin/make: 492Fix: Rebuild usr.bin/make:
499 cd usr.bin/make && make && make install 493 cd usr.bin/make && make && make install
500 Or, a failsafe method if that doesn't work: 494 Or, a failsafe method if that doesn't work:
501 cd usr.bin/make && cc *.c */*.c -I . -o make && mv make /usr/bin 495 cd usr.bin/make && cc *.c */*.c -I . -o make && mv make /usr/bin
502 496
503Fix: Make sure .mk files are up to date. 497Fix: Make sure .mk files are up to date.
504 cd share/mk && make install 498 cd share/mk && make install
505 499
506Symptom:Kernel `config' fails to configure any kernel, including GENERIC. 500Symptom:Kernel `config' fails to configure any kernel, including GENERIC.
507Fix: Rebuild usr.bin/config 501Fix: Rebuild usr.bin/config
508 502
509Symptom: 503Symptom:
510Fix: Rebuild usr.bin/yacc 504Fix: Rebuild usr.bin/yacc
511 505
512Symptom: 506Symptom:
513Fix: Rebuild usr.bin/lex 507Fix: Rebuild usr.bin/lex
514 508
515Symptom: 509Symptom:
516Fix: rm /usr/lib/libbfd.a 510Fix: rm /usr/lib/libbfd.a
517 511
518Symptom:Obsolete intermediate files are used during compilation 512Symptom:Obsolete intermediate files are used during compilation
519Fix: Try the following sequence of commands in the directory in question. 513Fix: Try the following sequence of commands in the directory in question.
520 make cleandir; rm `make print-objdir`; make cleandir; make obj 514 make cleandir; rm `make print-objdir`; make cleandir; make obj
521 (If you built the tree without "make obj" in the past, obsolete files 515 (If you built the tree without "make obj" in the past, obsolete files
522 may remain. The command tries to clean everything up) 516 may remain. The command tries to clean everything up)
523 517
524Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible 518Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible
525 pointer type 519 pointer type
526Fix: Rebuild and install usr.bin/menuc 520Fix: Rebuild and install usr.bin/menuc
527 521
528Symptom:mklocale not found during build in share/locale/ctype 522Symptom:mklocale not found during build in share/locale/ctype
529Fix: Build and install usr.bin/mklocale 523Fix: Build and install usr.bin/mklocale
530 524
531Symptom:undefined reference to `__assert13' or `__unsetenv13' 525Symptom:undefined reference to `__assert13' or `__unsetenv13'
532Fix: Rebuild and install lib/libc 526Fix: Rebuild and install lib/libc
533 527
534Symptom:usr.bin/config fails to build. 528Symptom:usr.bin/config fails to build.
535Fix: Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile. 529Fix: Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile.
536 530
537Symptom:undefined reference to `getprogname' or `setprogname' 531Symptom:undefined reference to `getprogname' or `setprogname'
538Fix: Rebuild and install lib/libc 532Fix: Rebuild and install lib/libc
539 533
540Symptom:lint does not understand the '-X' option 534Symptom:lint does not understand the '-X' option
541Fix: May need to build & install libs with NOLINT=1 before rebuilding lint 535Fix: May need to build & install libs with NOLINT=1 before rebuilding lint

cvs diff -r1.103 -r1.104 src/share/mk/sys.mk (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,276 +1,270 @@ @@ -1,276 +1,270 @@
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" || \
38 ${MACHINE_ARCH} == "powerpc" || \ 32 ${MACHINE_ARCH} == "powerpc" || \
39 ${MACHINE_ARCH} == "sparc" || \ 33 ${MACHINE_ARCH} == "sparc" || \
40 ${MACHINE_ARCH} == "sparc64" 34 ${MACHINE_ARCH} == "sparc64"
41DBG?= -O2 35DBG?= -O2
42.elif ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb" 36.elif ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb"
43# -O2 is too -falign-* zealous for low-memory sh3 machines 37# -O2 is too -falign-* zealous for low-memory sh3 machines
44DBG?= -Os -freorder-blocks 38DBG?= -Os -freorder-blocks
45.elif ${MACHINE_ARCH} == "vax" 39.elif ${MACHINE_ARCH} == "vax"
46DBG?= -O1 -fgcse -fstrength-reduce -fgcse-after-reload 40DBG?= -O1 -fgcse -fstrength-reduce -fgcse-after-reload
47.elif ${MACHINE_ARCH} == "m68000" 41.elif ${MACHINE_ARCH} == "m68000"
48# see src/doc/HACKS for details 42# see src/doc/HACKS for details
49DBG?= -O1 43DBG?= -O1
50.else 44.else
51DBG?= -O 45DBG?= -O
52.endif 46.endif
53CFLAGS?= ${DBG} 47CFLAGS?= ${DBG}
54LDFLAGS?= 48LDFLAGS?=
55COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c 49COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
56LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} 50LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
57 51
58# C Type Format data is required for DTrace 52# C Type Format data is required for DTrace
59# XXX TBD VERSION is not defined 53# XXX TBD VERSION is not defined
60CTFFLAGS ?= -L VERSION 54CTFFLAGS ?= -L VERSION
61CTFMFLAGS ?= -t -L VERSION 55CTFMFLAGS ?= -t -L VERSION
62 56
63.if defined(MKDTRACE) && ${MKDTRACE} != "no" 57.if defined(MKDTRACE) && ${MKDTRACE} != "no"
64CTFCONVERT ?= ${TOOL_CTFCONVERT} 58CTFCONVERT ?= ${TOOL_CTFCONVERT}
65CTFMERGE ?= ${TOOL_CTFMERGE} 59CTFMERGE ?= ${TOOL_CTFMERGE}
66.if defined(CFLAGS) && (${CFLAGS:M-g} != "") 60.if defined(CFLAGS) && (${CFLAGS:M-g} != "")
67CTFFLAGS += -g 61CTFFLAGS += -g
68CTFMFLAGS += -g 62CTFMFLAGS += -g
69.else 63.else
70CFLAGS += -g 64CFLAGS += -g
71.endif 65.endif
72.endif 66.endif
73 67
74CXX?= c++ 68CXX?= c++
75CXXFLAGS?= ${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-Wno-pointer-sign:N-ffreestanding:N-std=gnu99} 69CXXFLAGS?= ${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-Wno-pointer-sign:N-ffreestanding:N-std=gnu99}
76 70
77__ALLSRC1= ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}} 71__ALLSRC1= ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
78__ALLSRC2= ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}} 72__ALLSRC2= ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}}
79__ALLSRC3= ${empty(NETBSDSRCDIR):?${__ALLSRC2}:${__ALLSRC2:S|^${NETBSDSRCDIR}|^src|}} 73__ALLSRC3= ${empty(NETBSDSRCDIR):?${__ALLSRC2}:${__ALLSRC2:S|^${NETBSDSRCDIR}|^src|}}
80 74
81_CXXSEED?= ${BUILDSEED:D-frandom-seed=${BUILDSEED:Q}/${__ALLSRC3:O:Q}/${.TARGET:Q}} 75_CXXSEED?= ${BUILDSEED:D-frandom-seed=${BUILDSEED:Q}/${__ALLSRC3:O:Q}/${.TARGET:Q}}
82 76
83COMPILE.cc?= ${CXX} ${_CXXSEED} ${CXXFLAGS} ${CPPFLAGS} -c 77COMPILE.cc?= ${CXX} ${_CXXSEED} ${CXXFLAGS} ${CPPFLAGS} -c
84LINK.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} 78LINK.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}
85 79
86OBJC?= ${CC} 80OBJC?= ${CC}
87OBJCFLAGS?= ${CFLAGS} 81OBJCFLAGS?= ${CFLAGS}
88COMPILE.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c 82COMPILE.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c
89LINK.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} ${LDFLAGS} 83LINK.m?= ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} ${LDFLAGS}
90 84
91CPP?= cpp 85CPP?= cpp
92CPPFLAGS?= 86CPPFLAGS?=
93 87
94FC?= f77 88FC?= f77
95FFLAGS?= -O 89FFLAGS?= -O
96RFLAGS?= 90RFLAGS?=
97COMPILE.f?= ${FC} ${FFLAGS} -c 91COMPILE.f?= ${FC} ${FFLAGS} -c
98LINK.f?= ${FC} ${FFLAGS} ${LDFLAGS} 92LINK.f?= ${FC} ${FFLAGS} ${LDFLAGS}
99COMPILE.F?= ${FC} ${FFLAGS} ${CPPFLAGS} -c 93COMPILE.F?= ${FC} ${FFLAGS} ${CPPFLAGS} -c
100LINK.F?= ${FC} ${FFLAGS} ${CPPFLAGS} ${LDFLAGS} 94LINK.F?= ${FC} ${FFLAGS} ${CPPFLAGS} ${LDFLAGS}
101COMPILE.r?= ${FC} ${FFLAGS} ${RFLAGS} -c 95COMPILE.r?= ${FC} ${FFLAGS} ${RFLAGS} -c
102LINK.r?= ${FC} ${FFLAGS} ${RFLAGS} ${LDFLAGS} 96LINK.r?= ${FC} ${FFLAGS} ${RFLAGS} ${LDFLAGS}
103 97
104INSTALL?= install 98INSTALL?= install
105 99
106LD?= ld 100LD?= ld
107 101
108LEX?= lex 102LEX?= lex
109LFLAGS?= 103LFLAGS?=
110LEX.l?= ${LEX} ${LFLAGS} 104LEX.l?= ${LEX} ${LFLAGS}
111 105
112LINT?= lint 106LINT?= lint
113LINTFLAGS?= -chapbxzFS 107LINTFLAGS?= -chapbxzFS
114 108
115LORDER?= lorder 109LORDER?= lorder
116 110
117MAKE?= make 111MAKE?= make
118 112
119NM?= nm 113NM?= nm
120 114
121PC?= pc 115PC?= pc
122PFLAGS?= 116PFLAGS?=
123COMPILE.p?= ${PC} ${PFLAGS} ${CPPFLAGS} -c 117COMPILE.p?= ${PC} ${PFLAGS} ${CPPFLAGS} -c
124LINK.p?= ${PC} ${PFLAGS} ${CPPFLAGS} ${LDFLAGS} 118LINK.p?= ${PC} ${PFLAGS} ${CPPFLAGS} ${LDFLAGS}
125 119
126SHELL?= sh 120SHELL?= sh
127 121
128SIZE?= size 122SIZE?= size
129 123
130TSORT?= tsort -q 124TSORT?= tsort -q
131 125
132YACC?= yacc 126YACC?= yacc
133YFLAGS?= 127YFLAGS?=
134YACC.y?= ${YACC} ${YFLAGS} 128YACC.y?= ${YACC} ${YFLAGS}
135 129
136# C 130# C
137.c: 131.c:
138 ${LINK.c} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 132 ${LINK.c} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
139.if defined(CTFCONVERT) 133.if defined(CTFCONVERT)
140 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 134 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
141.endif 135.endif
142.c.o: 136.c.o:
143 ${COMPILE.c} ${.IMPSRC} 137 ${COMPILE.c} ${.IMPSRC}
144.if defined(CTFCONVERT) 138.if defined(CTFCONVERT)
145 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 139 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
146.endif 140.endif
147.c.a: 141.c.a:
148 ${COMPILE.c} ${.IMPSRC} 142 ${COMPILE.c} ${.IMPSRC}
149 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 143 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
150 rm -f ${.PREFIX}.o 144 rm -f ${.PREFIX}.o
151.c.ln: 145.c.ln:
152 ${LINT} ${LINTFLAGS} \ 146 ${LINT} ${LINTFLAGS} \
153 ${CPPFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ 147 ${CPPFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
154 -i ${.IMPSRC} 148 -i ${.IMPSRC}
155 149
156# C++ 150# C++
157.cc .cpp .cxx .C: 151.cc .cpp .cxx .C:
158 ${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 152 ${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
159.cc.o .cpp.o .cxx.o .C.o: 153.cc.o .cpp.o .cxx.o .C.o:
160 ${COMPILE.cc} ${.IMPSRC} 154 ${COMPILE.cc} ${.IMPSRC}
161.cc.a .cpp.a .cxx.a .C.a: 155.cc.a .cpp.a .cxx.a .C.a:
162 ${COMPILE.cc} ${.IMPSRC} 156 ${COMPILE.cc} ${.IMPSRC}
163 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 157 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
164 rm -f ${.PREFIX}.o 158 rm -f ${.PREFIX}.o
165 159
166# Fortran/Ratfor 160# Fortran/Ratfor
167.f: 161.f:
168 ${LINK.f} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 162 ${LINK.f} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
169.f.o: 163.f.o:
170 ${COMPILE.f} ${.IMPSRC} 164 ${COMPILE.f} ${.IMPSRC}
171.f.a: 165.f.a:
172 ${COMPILE.f} ${.IMPSRC} 166 ${COMPILE.f} ${.IMPSRC}
173 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 167 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
174 rm -f ${.PREFIX}.o 168 rm -f ${.PREFIX}.o
175 169
176.F: 170.F:
177 ${LINK.F} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 171 ${LINK.F} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
178.if defined(CTFCONVERT) 172.if defined(CTFCONVERT)
179 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 173 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
180.endif 174.endif
181.F.o: 175.F.o:
182 ${COMPILE.F} ${.IMPSRC} 176 ${COMPILE.F} ${.IMPSRC}
183.if defined(CTFCONVERT) 177.if defined(CTFCONVERT)
184 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 178 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
185.endif 179.endif
186.F.a: 180.F.a:
187 ${COMPILE.F} ${.IMPSRC} 181 ${COMPILE.F} ${.IMPSRC}
188 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 182 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
189 rm -f ${.PREFIX}.o 183 rm -f ${.PREFIX}.o
190 184
191.r: 185.r:
192 ${LINK.r} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 186 ${LINK.r} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
193.r.o: 187.r.o:
194 ${COMPILE.r} ${.IMPSRC} 188 ${COMPILE.r} ${.IMPSRC}
195.r.a: 189.r.a:
196 ${COMPILE.r} ${.IMPSRC} 190 ${COMPILE.r} ${.IMPSRC}
197 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 191 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
198 rm -f ${.PREFIX}.o 192 rm -f ${.PREFIX}.o
199 193
200# Pascal 194# Pascal
201.p: 195.p:
202 ${LINK.p} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 196 ${LINK.p} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
203.if defined(CTFCONVERT) 197.if defined(CTFCONVERT)
204 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 198 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
205.endif 199.endif
206.p.o: 200.p.o:
207 ${COMPILE.p} ${.IMPSRC} 201 ${COMPILE.p} ${.IMPSRC}
208.if defined(CTFCONVERT) 202.if defined(CTFCONVERT)
209 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 203 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
210.endif 204.endif
211.p.a: 205.p.a:
212 ${COMPILE.p} ${.IMPSRC} 206 ${COMPILE.p} ${.IMPSRC}
213 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 207 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
214 rm -f ${.PREFIX}.o 208 rm -f ${.PREFIX}.o
215 209
216# Assembly 210# Assembly
217.s: 211.s:
218 ${LINK.s} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 212 ${LINK.s} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
219.if defined(CTFCONVERT) 213.if defined(CTFCONVERT)
220 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 214 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
221.endif 215.endif
222.s.o: 216.s.o:
223 ${COMPILE.s} ${.IMPSRC} 217 ${COMPILE.s} ${.IMPSRC}
224.if defined(CTFCONVERT) 218.if defined(CTFCONVERT)
225 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 219 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
226.endif 220.endif
227.s.a: 221.s.a:
228 ${COMPILE.s} ${.IMPSRC} 222 ${COMPILE.s} ${.IMPSRC}
229 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 223 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
230 rm -f ${.PREFIX}.o 224 rm -f ${.PREFIX}.o
231.S: 225.S:
232 ${LINK.S} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} 226 ${LINK.S} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
233.if defined(CTFCONVERT) 227.if defined(CTFCONVERT)
234 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 228 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
235.endif 229.endif
236.S.o: 230.S.o:
237 ${COMPILE.S} ${.IMPSRC} 231 ${COMPILE.S} ${.IMPSRC}
238.if defined(CTFCONVERT) 232.if defined(CTFCONVERT)
239 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 233 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
240.endif 234.endif
241.S.a: 235.S.a:
242 ${COMPILE.S} ${.IMPSRC} 236 ${COMPILE.S} ${.IMPSRC}
243 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 237 ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
244 rm -f ${.PREFIX}.o 238 rm -f ${.PREFIX}.o
245 239
246# Lex 240# Lex
247.l: 241.l:
248 ${LEX.l} ${.IMPSRC} 242 ${LEX.l} ${.IMPSRC}
249 ${LINK.c} -o ${.TARGET} lex.yy.c ${LDLIBS} -ll 243 ${LINK.c} -o ${.TARGET} lex.yy.c ${LDLIBS} -ll
250 rm -f lex.yy.c 244 rm -f lex.yy.c
251.l.c: 245.l.c:
252 ${LEX.l} ${.IMPSRC} 246 ${LEX.l} ${.IMPSRC}
253 mv lex.yy.c ${.TARGET} 247 mv lex.yy.c ${.TARGET}
254.l.o: 248.l.o:
255 ${LEX.l} ${.IMPSRC} 249 ${LEX.l} ${.IMPSRC}
256 ${COMPILE.c} -o ${.TARGET} lex.yy.c 250 ${COMPILE.c} -o ${.TARGET} lex.yy.c
257 rm -f lex.yy.c 251 rm -f lex.yy.c
258 252
259# Yacc 253# Yacc
260.y: 254.y:
261 ${YACC.y} ${.IMPSRC} 255 ${YACC.y} ${.IMPSRC}
262 ${LINK.c} -o ${.TARGET} y.tab.c ${LDLIBS} 256 ${LINK.c} -o ${.TARGET} y.tab.c ${LDLIBS}
263 rm -f y.tab.c 257 rm -f y.tab.c
264.y.c: 258.y.c:
265 ${YACC.y} ${.IMPSRC} 259 ${YACC.y} ${.IMPSRC}
266 mv y.tab.c ${.TARGET} 260 mv y.tab.c ${.TARGET}
267.y.o: 261.y.o:
268 ${YACC.y} ${.IMPSRC} 262 ${YACC.y} ${.IMPSRC}
269 ${COMPILE.c} -o ${.TARGET} y.tab.c 263 ${COMPILE.c} -o ${.TARGET} y.tab.c
270 rm -f y.tab.c 264 rm -f y.tab.c
271 265
272# Shell 266# Shell
273.sh: 267.sh:
274 rm -f ${.TARGET} 268 rm -f ${.TARGET}
275 cp ${.IMPSRC} ${.TARGET} 269 cp ${.IMPSRC} ${.TARGET}
276 chmod a+x ${.TARGET} 270 chmod a+x ${.TARGET}

cvs diff -r1.10 -r1.11 src/sys/arch/acorn26/conf/Attic/Makefile.acorn26 (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,108 +1,108 @@ @@ -1,108 +1,108 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20USETOOLS?= no 20USETOOLS?= no
21NEED_OWN_INSTALL_TARGET?=no 21NEED_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##
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
53 ${NORMAL_S} 53 ${NORMAL_S}
54 54
55vectors.o: ${ARM}/arm/vectors.S assym.h 55vectors.o: ${ARM}/arm/vectors.S assym.h
56 ${NORMAL_S} 56 ${NORMAL_S}
57 57
58bcopyinout.o copyinout.o copystr.o cpu_in_cksum.o fiq_subr.o: assym.h 58bcopyinout.o copyinout.o copystr.o cpu_in_cksum.o fiq_subr.o: assym.h
59sigcode.o: assym.h 59sigcode.o: assym.h
60 60
61## 61##
62## (5) link settings 62## (5) link settings
63## 63##
64TEXTADDR?= 0x02098000 64TEXTADDR?= 0x02098000
65LINKFORMAT= -N 65LINKFORMAT= -N
66# Strip ARM mapping symbols from the kernel image, as they interfere 66# Strip ARM mapping symbols from the kernel image, as they interfere
67# with ddb. Do it differently if 'makeoptions DEBUG="-g"' was specified. 67# with ddb. Do it differently if 'makeoptions DEBUG="-g"' was specified.
68.if !defined(DEBUG) || empty(DEBUG:M-g*) 68.if !defined(DEBUG) || empty(DEBUG:M-g*)
69SYSTEM_LD_TAIL?= @${OBJCOPY} --strip-symbol='$$a' \ 69SYSTEM_LD_TAIL?= @${OBJCOPY} --strip-symbol='$$a' \
70 --strip-symbol='$$t' \ 70 --strip-symbol='$$t' \
71 --strip-symbol='$$d' $@ ;\ 71 --strip-symbol='$$d' $@ ;\
72 ${SIZE} $@; chmod 755 $@ 72 ${SIZE} $@; chmod 755 $@
73.else 73.else
74STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d' 74STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d'
75.endif 75.endif
76 76
77## 77##
78## (6) port specific target dependencies 78## (6) port specific target dependencies
79## 79##
80 80
81## 81##
82## (7) misc settings 82## (7) misc settings
83## 83##
84 84
85## 85##
86## (8) config(8) generated machinery 86## (8) config(8) generated machinery
87## 87##
88%INCLUDES 88%INCLUDES
89 89
90%OBJS 90%OBJS
91 91
92%CFILES 92%CFILES
93 93
94%SFILES 94%SFILES
95 95
96%LOAD 96%LOAD
97 97
98%RULES 98%RULES
99 99
100## 100##
101## (9) port independent kernel machinery 101## (9) port independent kernel machinery
102## 102##
103.include "$S/conf/Makefile.kern.inc" 103.include "$S/conf/Makefile.kern.inc"
104 104
105## 105##
106## (10) Appending make options. 106## (10) Appending make options.
107## 107##
108%MAKEOPTIONSAPPEND 108%MAKEOPTIONSAPPEND

cvs diff -r1.106 -r1.107 src/sys/arch/amiga/conf/Makefile.amiga (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,109 +1,109 @@ @@ -1,109 +1,109 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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
54.include "$S/arch/m68k/060sp/Makefile.inc" 54.include "$S/arch/m68k/060sp/Makefile.inc"
55 55
56MD_OBJS= locore.o ${FPSP} 56MD_OBJS= locore.o ${FPSP}
57MD_CFILES= 57MD_CFILES=
58MD_SFILES= ${AMIGA}/amiga/locore.s 58MD_SFILES= ${AMIGA}/amiga/locore.s
59 59
60copy.o copypage.o lock_stubs.o: assym.h 60copy.o copypage.o lock_stubs.o: assym.h
61 61
62locore.o: ${AMIGA}/amiga/locore.s assym.h 62locore.o: ${AMIGA}/amiga/locore.s assym.h
63 ${NORMAL_S} 63 ${NORMAL_S}
64 64
65## 65##
66## (5) link settings 66## (5) link settings
67## 67##
68TEXTADDR?= 0 68TEXTADDR?= 0
69LINKFORMAT= -n 69LINKFORMAT= -n
70 70
71## 71##
72## (6) port specific target dependencies 72## (6) port specific target dependencies
73## 73##
74 74
75# depend on CPU configuration 75# depend on CPU configuration
76amiga_init.o locore.o pmap.o sys_machdep.o: Makefile 76amiga_init.o locore.o pmap.o sys_machdep.o: Makefile
77bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile 77bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile
78 78
79# depends on defined(DRACO) 79# depends on defined(DRACO)
80a2kbbc.o: Makefile 80a2kbbc.o: Makefile
81 81
82## 82##
83## (7) misc settings 83## (7) misc settings
84## 84##
85 85
86## 86##
87## (8) config(8) generated machinery 87## (8) config(8) generated machinery
88## 88##
89%INCLUDES 89%INCLUDES
90 90
91%OBJS 91%OBJS
92 92
93%CFILES 93%CFILES
94 94
95%SFILES 95%SFILES
96 96
97%LOAD 97%LOAD
98 98
99%RULES 99%RULES
100 100
101## 101##
102## (9) port independent kernel machinery 102## (9) port independent kernel machinery
103## 103##
104.include "$S/conf/Makefile.kern.inc" 104.include "$S/conf/Makefile.kern.inc"
105 105
106## 106##
107## (10) Appending make options. 107## (10) Appending make options.
108## 108##
109%MAKEOPTIONSAPPEND 109%MAKEOPTIONSAPPEND

cvs diff -r1.9 -r1.10 src/sys/arch/arc/stand/boot/Makefile (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,77 +1,77 @@ @@ -1,77 +1,77 @@
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
38.if exists(version) 38.if exists(version)
39.PHONY: vers.c 39.PHONY: vers.c
40vers.c: ${.CURDIR}/version 40vers.c: ${.CURDIR}/version
41 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE} 41 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE}
42 42
43SRCS+= vers.c 43SRCS+= vers.c
44CLEANFILES+= vers.c 44CLEANFILES+= vers.c
45.endif 45.endif
46 46
47### find out what to use for libsa 47### find out what to use for libsa
48SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 48SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
49.include "${S}/lib/libsa/Makefile.inc" 49.include "${S}/lib/libsa/Makefile.inc"
50LIBSA= ${SALIB} 50LIBSA= ${SALIB}
51 51
52### find out what to use for libkern 52### find out what to use for libkern
53.include "${S}/lib/libkern/Makefile.inc" 53.include "${S}/lib/libkern/Makefile.inc"
54LIBKERN= ${KERNLIB} 54LIBKERN= ${KERNLIB}
55 55
56### find out what to use for libz 56### find out what to use for libz
57.include "${S}/lib/libz/Makefile.inc" 57.include "${S}/lib/libz/Makefile.inc"
58LIBZ= ${ZLIB} 58LIBZ= ${ZLIB}
59 59
60LIBS= ${LIBSA} ${LIBKERN} ${LIBZ} 60LIBS= ${LIBSA} ${LIBKERN} ${LIBZ}
61 61
62cleandir distclean: .WAIT cleanlibdir 62cleandir distclean: .WAIT cleanlibdir
63cleanlibdir: 63cleanlibdir:
64 -rm -rf lib 64 -rm -rf lib
65 65
66${PROG}: ${OBJS} ${LIBS} 66${PROG}: ${OBJS} ${LIBS}
67 ${LD} -Map ${PROG}.map -N -x -Ttext ${TEXTADDR} -T ${LDSCRIPT} \ 67 ${LD} -Map ${PROG}.map -N -x -Ttext ${TEXTADDR} -T ${LDSCRIPT} \
68 -e start -o ${PROG}.elf ${OBJS} ${LIBS} 68 -e start -o ${PROG}.elf ${OBJS} ${LIBS}
69 @${SIZE} ${PROG}.elf 69 @${SIZE} ${PROG}.elf
70 ${OBJCOPY} --impure -O ecoff-littlemips \ 70 ${OBJCOPY} --impure -O ecoff-littlemips \
71 -R .pdr -R .mdebug.abi32 -R .comment -R .ident \ 71 -R .pdr -R .mdebug.abi32 -R .comment -R .ident \
72 ${PROG}.elf ${.TARGET} 72 ${PROG}.elf ${.TARGET}
73 73
74CLEANFILES+= ${PROG}.elf ${PROG}.map 74CLEANFILES+= ${PROG}.elf ${PROG}.map
75 75
76.include <bsd.klinks.mk> 76.include <bsd.klinks.mk>
77.include <bsd.prog.mk> 77.include <bsd.prog.mk>

cvs diff -r1.74 -r1.75 src/sys/arch/atari/conf/Makefile.atari (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,100 +1,100 @@ @@ -1,100 +1,100 @@
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
15MACHINE_ARCH=m68k 15MACHINE_ARCH=m68k
16USETOOLS?= no 16USETOOLS?= no
17NEED_OWN_INSTALL_TARGET?=no 17NEED_OWN_INSTALL_TARGET?=no
18.include <bsd.own.mk> 18.include <bsd.own.mk>
19 19
20## 20##
21## (1) port identification 21## (1) port identification
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
49.include "$S/arch/m68k/060sp/Makefile.inc" 49.include "$S/arch/m68k/060sp/Makefile.inc"
50 50
51MD_OBJS= locore.o ${FPSP} 51MD_OBJS= locore.o ${FPSP}
52MD_CFILES= 52MD_CFILES=
53MD_SFILES= ${ATARI}/atari/locore.s 53MD_SFILES= ${ATARI}/atari/locore.s
54 54
55copy.o copypage.o lock_stubs.o: assym.h 55copy.o copypage.o lock_stubs.o: assym.h
56 56
57locore.o: ${ATARI}/atari/locore.s assym.h 57locore.o: ${ATARI}/atari/locore.s assym.h
58 ${NORMAL_S} 58 ${NORMAL_S}
59 59
60## 60##
61## (5) link settings 61## (5) link settings
62## 62##
63TEXTADDR?= 0 63TEXTADDR?= 0
64LINKFORMAT= -n 64LINKFORMAT= -n
65 65
66## 66##
67## (6) port specific target dependencies 67## (6) port specific target dependencies
68## 68##
69 69
70# depend on CPU configuration 70# depend on CPU configuration
71locore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile 71locore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile
72 72
73## 73##
74## (7) misc settings 74## (7) misc settings
75## 75##
76 76
77## 77##
78## (8) config(8) generated machinery 78## (8) config(8) generated machinery
79## 79##
80%INCLUDES 80%INCLUDES
81 81
82%OBJS 82%OBJS
83 83
84%CFILES 84%CFILES
85 85
86%SFILES 86%SFILES
87 87
88%LOAD 88%LOAD
89 89
90%RULES 90%RULES
91 91
92## 92##
93## (9) port independent kernel machinery 93## (9) port independent kernel machinery
94## 94##
95.include "$S/conf/Makefile.kern.inc" 95.include "$S/conf/Makefile.kern.inc"
96 96
97## 97##
98## (10) Appending make options. 98## (10) Appending make options.
99## 99##
100%MAKEOPTIONSAPPEND 100%MAKEOPTIONSAPPEND

cvs diff -r1.29 -r1.30 src/sys/arch/bebox/stand/boot/Makefile (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,85 +1,85 @@ @@ -1,85 +1,85 @@
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
15ELF2PEF= ${.CURDIR}/../../../powerpc/stand/mkbootimage 15ELF2PEF= ${.CURDIR}/../../../powerpc/stand/mkbootimage
16 16
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
44.elif (${BASE} == "boot_vga") 44.elif (${BASE} == "boot_vga")
45CPPFLAGS+= -DCONS_VGA 45CPPFLAGS+= -DCONS_VGA
46.endif 46.endif
47 47
48STRIPFLAG= 48STRIPFLAG=
49BINMODE= 444 49BINMODE= 444
50 50
51# XXX SHOULD NOT NEED TO DEFINE THESE! 51# XXX SHOULD NOT NEED TO DEFINE THESE!
52LIBCRT0= 52LIBCRT0=
53LIBC= 53LIBC=
54LIBCRTBEGIN= 54LIBCRTBEGIN=
55LIBCRTEND= 55LIBCRTEND=
56 56
57RELOC= 0x700000 57RELOC= 0x700000
58 58
59CLEANFILES+= vers.c machine powerpc ${PROG}.elf 59CLEANFILES+= vers.c machine powerpc ${PROG}.elf
60 60
61LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a 61LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
62 62
63.if !make(obj) && !make(clean) && !make(cleandir) 63.if !make(obj) && !make(clean) && !make(cleandir)
64.BEGIN: machine powerpc 64.BEGIN: machine powerpc
65.NOPATH: machine powerpc 65.NOPATH: machine powerpc
66 66
67machine:: 67machine::
68 -rm -f $@ 68 -rm -f $@
69 ln -s ${S}/arch/${MACHINE}/include $@ 69 ln -s ${S}/arch/${MACHINE}/include $@
70 70
71powerpc:: 71powerpc::
72 -rm -f $@ 72 -rm -f $@
73 ln -s ${S}/arch/powerpc/include $@ 73 ln -s ${S}/arch/powerpc/include $@
74.endif 74.endif
75 75
76vers.c: ${.CURDIR}/../boot/version 76vers.c: ${.CURDIR}/../boot/version
77 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version \ 77 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version \
78 "bebox" ${NEWVERSWHAT} 78 "bebox" ${NEWVERSWHAT}
79 79
80${PROG}: ${OBJS} ${LIBS} 80${PROG}: ${OBJS} ${LIBS}
81 ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \ 81 ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \
82 -Ttext ${RELOC} ${OBJS} ${LIBS} 82 -Ttext ${RELOC} ${OBJS} ${LIBS}
83 ${STRIP} -o ${PROG} ${PROG}.elf 83 ${STRIP} -o ${PROG} ${PROG}.elf
84 84
85.include <bsd.prog.mk> 85.include <bsd.prog.mk>

cvs diff -r1.15 -r1.16 src/sys/arch/cesfic/conf/Makefile.cesfic (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,95 +1,95 @@ @@ -1,95 +1,95 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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
51MD_OBJS= locore.o ${FPSP} 51MD_OBJS= locore.o ${FPSP}
52MD_CFILES= 52MD_CFILES=
53MD_SFILES= ${CESFIC}/cesfic/locore.s 53MD_SFILES= ${CESFIC}/cesfic/locore.s
54 54
55locore.o: ${CESFIC}/cesfic/locore.s assym.h 55locore.o: ${CESFIC}/cesfic/locore.s assym.h
56 ${NORMAL_S} 56 ${NORMAL_S}
57 57
58## 58##
59## (5) link settings 59## (5) link settings
60## 60##
61LINKFORMAT= -n 61LINKFORMAT= -n
62TEXTADDR?= 2000 62TEXTADDR?= 2000
63 63
64## 64##
65## (6) port specific target dependencies 65## (6) port specific target dependencies
66## 66##
67 67
68## 68##
69## (7) misc settings 69## (7) misc settings
70## 70##
71 71
72## 72##
73## (8) config(8) generated machinery 73## (8) config(8) generated machinery
74## 74##
75%INCLUDES 75%INCLUDES
76 76
77%OBJS 77%OBJS
78 78
79%CFILES 79%CFILES
80 80
81#%SFILES 81#%SFILES
82 82
83%LOAD 83%LOAD
84 84
85%RULES 85%RULES
86 86
87## 87##
88## (9) port independent kernel machinery 88## (9) port independent kernel machinery
89## 89##
90.include "$S/conf/Makefile.kern.inc" 90.include "$S/conf/Makefile.kern.inc"
91 91
92## 92##
93## (10) Appending make options. 93## (10) Appending make options.
94## 94##
95%MAKEOPTIONSAPPEND 95%MAKEOPTIONSAPPEND

cvs diff -r1.87 -r1.88 src/sys/arch/hp300/conf/Makefile.hp300 (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,96 +1,96 @@ @@ -1,96 +1,96 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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}
50MD_CFILES= 50MD_CFILES=
51MD_SFILES= ${HP300}/hp300/locore.s 51MD_SFILES= ${HP300}/hp300/locore.s
52 52
53locore.o: ${HP300}/hp300/locore.s assym.h 53locore.o: ${HP300}/hp300/locore.s assym.h
54 ${NORMAL_S} 54 ${NORMAL_S}
55 55
56## 56##
57## (5) link settings 57## (5) link settings
58## 58##
59LINKFORMAT= -n 59LINKFORMAT= -n
60TEXTADDR?= 0 60TEXTADDR?= 0
61 61
62## 62##
63## (6) port specific target dependencies 63## (6) port specific target dependencies
64## 64##
65 65
66# depend on CPU configuration 66# depend on CPU configuration
67dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o trap.o: Makefile 67dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o trap.o: Makefile
68 68
69## 69##
70## (7) misc settings 70## (7) misc settings
71## 71##
72 72
73## 73##
74## (8) config(8) generated machinery 74## (8) config(8) generated machinery
75## 75##
76%INCLUDES 76%INCLUDES
77 77
78%OBJS 78%OBJS
79 79
80%CFILES 80%CFILES
81 81
82#%SFILES 82#%SFILES
83 83
84%LOAD 84%LOAD
85 85
86%RULES 86%RULES
87 87
88## 88##
89## (9) port independent kernel machinery 89## (9) port independent kernel machinery
90## 90##
91.include "$S/conf/Makefile.kern.inc" 91.include "$S/conf/Makefile.kern.inc"
92 92
93## 93##
94## (10) Appending make options. 94## (10) Appending make options.
95## 95##
96%MAKEOPTIONSAPPEND 96%MAKEOPTIONSAPPEND

cvs diff -r1.9 -r1.10 src/sys/arch/hpcmips/stand/lcboot/Makefile (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,85 +1,85 @@ @@ -1,85 +1,85 @@
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
15#CPPFLAGS+= -DDEBUG -DNET_DEBUG -DNETIF_DEBUG -DARP_DEBUG \ 15#CPPFLAGS+= -DDEBUG -DNET_DEBUG -DNETIF_DEBUG -DARP_DEBUG \
16# -DETHER_DEBUG -DBOOTP_DEBUG 16# -DETHER_DEBUG -DBOOTP_DEBUG
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
44.NOPATH: machine 44.NOPATH: machine
45.endif 45.endif
46CLEANFILES+= machine mips 46CLEANFILES+= machine mips
47 47
48${OBJS}: machine mips 48${OBJS}: machine mips
49 49
50### find out what to use for libkern 50### find out what to use for libkern
51.include "${S}/lib/libkern/Makefile.inc" 51.include "${S}/lib/libkern/Makefile.inc"
52LIBKERN= ${KERNLIB} 52LIBKERN= ${KERNLIB}
53 53
54### find out what to use for libz 54### find out what to use for libz
55.include "${S}/lib/libz/Makefile.inc" 55.include "${S}/lib/libz/Makefile.inc"
56LIBZ= ${ZLIB} 56LIBZ= ${ZLIB}
57 57
58### find out what to use for libsa 58### find out what to use for libsa
59SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 59SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
60SAMISCMAKEFLAGS+="SA_USE_CREAD=yes" 60SAMISCMAKEFLAGS+="SA_USE_CREAD=yes"
61.include "${S}/lib/libsa/Makefile.inc" 61.include "${S}/lib/libsa/Makefile.inc"
62LIBSA= ${SALIB} 62LIBSA= ${SALIB}
63 63
64LIBLIST= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBSA} 64LIBLIST= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBSA}
65 65
66# if there is a 'version' file, add rule for vers.c and add it to SRCS 66# if there is a 'version' file, add rule for vers.c and add it to SRCS
67# and CLEANFILES 67# and CLEANFILES
68.if exists (${VERSIONFILE}) 68.if exists (${VERSIONFILE})
69SRCS+= vers.c 69SRCS+= vers.c
70CLEANFILES+= vers.c 70CLEANFILES+= vers.c
71.PHONY: vers.c 71.PHONY: vers.c
72vers.c: ${VERSIONFILE} 72vers.c: ${VERSIONFILE}
73 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.ALLSRC} 'hpcmips' ${NEWVERSWHAT} 73 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.ALLSRC} 'hpcmips' ${NEWVERSWHAT}
74.endif 74.endif
75 75
76CLEANFILES+= ${PROG} 76CLEANFILES+= ${PROG}
77${PROG}: ${OBJS} ${LIBKERN} ${LIBSA} ${LIBZ} 77${PROG}: ${OBJS} ${LIBKERN} ${LIBSA} ${LIBZ}
78 ${LD} -o ${PROG} -T ${LD_SCRIPT} ${OBJS} ${LIBLIST} 78 ${LD} -o ${PROG} -T ${LD_SCRIPT} ${OBJS} ${LIBLIST}
79 79
80CLEANFILES+= ${SREC} 80CLEANFILES+= ${SREC}
81all: ${SREC} 81all: ${SREC}
82${SREC}: ${PROG} 82${SREC}: ${PROG}
83 ${OBJCOPY} -S -O srec ${PROG} ${SREC} 83 ${OBJCOPY} -S -O srec ${PROG} ${SREC}
84 84
85.include <bsd.prog.mk> 85.include <bsd.prog.mk>

cvs diff -r1.19 -r1.20 src/sys/arch/luna68k/conf/Makefile.luna68k (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,96 +1,96 @@ @@ -1,96 +1,96 @@
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"
15# A better way is to specify -g only for a few files. 15# A better way is to specify -g only for a few files.
16# 16#
17# makeoptions DEBUGLIST="uvm* trap if_*" 17# makeoptions DEBUGLIST="uvm* trap if_*"
18 18
19MACHINE_ARCH=m68k 19MACHINE_ARCH=m68k
20USETOOLS?= no 20USETOOLS?= no
21NEED_OWN_INSTALL_TARGET?=no 21NEED_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=
49MD_SFILES=  49MD_SFILES=
50 50
51locore.o: ${LUNA68K}/luna68k/locore.s assym.h 51locore.o: ${LUNA68K}/luna68k/locore.s assym.h
52 ${NORMAL_S} 52 ${NORMAL_S}
53 53
54## 54##
55## (5) link settings 55## (5) link settings
56## 56##
57LINKFORMAT= -N 57LINKFORMAT= -N
58TEXTADDR?= 0xc000 58TEXTADDR?= 0xc000
59 59
60## 60##
61## (6) port specific target dependencies 61## (6) port specific target dependencies
62## 62##
63 63
64# depend on CPU configuration 64# depend on CPU configuration
65machdep.c trap.o: Makefile 65machdep.c trap.o: Makefile
66 66
67copy.o copypage.o lock_stubs.o: assym.h 67copy.o copypage.o lock_stubs.o: assym.h
68 68
69## 69##
70## (7) misc settings 70## (7) misc settings
71## 71##
72 72
73## 73##
74## (8) config(8) generated machinery 74## (8) config(8) generated machinery
75## 75##
76%INCLUDES 76%INCLUDES
77 77
78%OBJS 78%OBJS
79 79
80%CFILES 80%CFILES
81 81
82%SFILES 82%SFILES
83 83
84%LOAD 84%LOAD
85 85
86%RULES 86%RULES
87 87
88## 88##
89## (9) port independent kernel machinery 89## (9) port independent kernel machinery
90## 90##
91.include "$S/conf/Makefile.kern.inc" 91.include "$S/conf/Makefile.kern.inc"
92 92
93## 93##
94## (10) Appending make options. 94## (10) Appending make options.
95## 95##
96%MAKEOPTIONSAPPEND 96%MAKEOPTIONSAPPEND

cvs diff -r1.89 -r1.90 src/sys/arch/mac68k/conf/Makefile.mac68k (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,98 +1,98 @@ @@ -1,98 +1,98 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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}
50MD_CFILES= 50MD_CFILES=
51MD_SFILES= ${MAC68K}/mac68k/locore.s 51MD_SFILES= ${MAC68K}/mac68k/locore.s
52 52
53locore.o: ${MAC68K}/mac68k/locore.s assym.h 53locore.o: ${MAC68K}/mac68k/locore.s assym.h
54 ${NORMAL_S} 54 ${NORMAL_S}
55 55
56## 56##
57## (5) link settings 57## (5) link settings
58## 58##
59LINKFORMAT= -n 59LINKFORMAT= -n
60TEXTADDR?= 0 60TEXTADDR?= 0
61 61
62## 62##
63## (6) port specific target dependencies 63## (6) port specific target dependencies
64## 64##
65 65
66# depend on CPU configuration 66# depend on CPU configuration
67locore.o pmap.o trap.o: Makefile 67locore.o pmap.o trap.o: Makefile
68 68
69copy.o copypage.o lock_stubs.o macromasm.o: assym.h 69copy.o copypage.o lock_stubs.o macromasm.o: assym.h
70 70
71## 71##
72## (7) misc settings 72## (7) misc settings
73## 73##
74 74
75## 75##
76## (8) config(8) generated machinery 76## (8) config(8) generated machinery
77## 77##
78%INCLUDES 78%INCLUDES
79 79
80%OBJS 80%OBJS
81 81
82%CFILES 82%CFILES
83 83
84%SFILES 84%SFILES
85 85
86%LOAD 86%LOAD
87 87
88%RULES 88%RULES
89 89
90## 90##
91## (9) port independent kernel machinery 91## (9) port independent kernel machinery
92## 92##
93.include "$S/conf/Makefile.kern.inc" 93.include "$S/conf/Makefile.kern.inc"
94 94
95## 95##
96## (10) Appending make options. 96## (10) Appending make options.
97## 97##
98%MAKEOPTIONSAPPEND 98%MAKEOPTIONSAPPEND

cvs diff -r1.55 -r1.56 src/sys/arch/mips/conf/Makefile.mips (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,151 +1,151 @@ @@ -1,151 +1,151 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20USETOOLS?= no 20USETOOLS?= no
21NEED_OWN_INSTALL_TARGET?=no 21NEED_OWN_INSTALL_TARGET?=no
22.include <bsd.own.mk> 22.include <bsd.own.mk>
23 23
24## 24##
25## (0) toolchain settings for things that aren't part of the standard 25## (0) toolchain settings for things that aren't part of the standard
26## toolchain 26## toolchain
27## 27##
28ELF2ECOFF?= elf2ecoff 28ELF2ECOFF?= elf2ecoff
29 29
30## 30##
31## (1) port identification 31## (1) port identification
32## 32##
33.ifndef S 33.ifndef S
34S= ../../../.. 34S= ../../../..
35.endif 35.endif
36THISMIPS= $S/arch/${MACHINE} 36THISMIPS= $S/arch/${MACHINE}
37MIPS= $S/arch/mips 37MIPS= $S/arch/mips
38GENASSYM_CONF= ${MIPS}/mips/genassym.cf 38GENASSYM_CONF= ${MIPS}/mips/genassym.cf
39.-include "${THISMIPS}/conf/Makefile.${MACHINE}.inc" 39.-include "${THISMIPS}/conf/Makefile.${MACHINE}.inc"
40 40
41## 41##
42## (2) compile settings 42## (2) compile settings
43## 43##
44## Note: -ffixed-?? must be kept in sync with cpu.h. 44## Note: -ffixed-?? must be kept in sync with cpu.h.
45## 45##
46CPPFLAGS+= -D${MACHINE} 46CPPFLAGS+= -D${MACHINE}
47DEFGP?= -G 0 47DEFGP?= -G 0
48GP?= ${DEFGP} 48GP?= ${DEFGP}
49CFLAGS+= ${GP} -mno-abicalls -msoft-float -ffixed-23 49CFLAGS+= ${GP} -mno-abicalls -msoft-float -ffixed-23
50.if defined(LP64) && ${LP64} == "yes" 50.if defined(LP64) && ${LP64} == "yes"
51.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" 51.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
52CFLAGS+= -msym32 -mabi=64 52CFLAGS+= -msym32 -mabi=64
53AFLAGS+= -msym32 -mabi=64 53AFLAGS+= -msym32 -mabi=64
54.endif 54.endif
55.if ${MACHINE_ARCH} == "mips64eb" 55.if ${MACHINE_ARCH} == "mips64eb"
56LDFLAGS+= -m elf64btsmip 56LDFLAGS+= -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
84MD_CFILES= 84MD_CFILES=
85MD_SFILES= ${MIPS}/mips/locore.S ${THISMIPS}/${MACHINE}/locore_machdep.S  85MD_SFILES= ${MIPS}/mips/locore.S ${THISMIPS}/${MACHINE}/locore_machdep.S
86 86
87locore.o: ${MIPS}/mips/locore.S assym.h 87locore.o: ${MIPS}/mips/locore.S assym.h
88 ${NORMAL_S} 88 ${NORMAL_S}
89 89
90locore_machdep.o: ${THISMIPS}/${MACHINE}/locore_machdep.S assym.h 90locore_machdep.o: ${THISMIPS}/${MACHINE}/locore_machdep.S assym.h
91 ${NORMAL_S} 91 ${NORMAL_S}
92 92
93## 93##
94## (5) link settings 94## (5) link settings
95## 95##
96.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" 96.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
97TEXTADDR?= ${DEFTEXTADDR:C/0x8/0xFFFFFFFF8/} 97TEXTADDR?= ${DEFTEXTADDR:C/0x8/0xFFFFFFFF8/}
98.else  98.else
99TEXTADDR?= ${DEFTEXTADDR} 99TEXTADDR?= ${DEFTEXTADDR}
100.endif 100.endif
101KERNLDSCRIPT?= ${MIPS}/conf/kern.ldscript 101KERNLDSCRIPT?= ${MIPS}/conf/kern.ldscript
102# some mips ports specify a "magic" format 102# some mips ports specify a "magic" format
103LINKFORMAT+= -T ${KERNLDSCRIPT} 103LINKFORMAT+= -T ${KERNLDSCRIPT}
104EXTRA_LINKFLAGS= ${GP} ${LDOPTS} 104EXTRA_LINKFLAGS= ${GP} ${LDOPTS}
105LINKFLAGS_NORMAL= -X 105LINKFLAGS_NORMAL= -X
106STRIPFLAGS= -g -X 106STRIPFLAGS= -g -X
107 107
108## 108##
109## (6) port specific target dependencies 109## (6) port specific target dependencies
110## 110##
111 111
112# depend on CPU configuration 112# depend on CPU configuration
113machdep.o mainbus.o trap.o: Makefile 113machdep.o mainbus.o trap.o: Makefile
114 114
115# depend on System V IPC/shmem options 115# depend on System V IPC/shmem options
116mips_machdep.o pmap.o: Makefile 116mips_machdep.o pmap.o: Makefile
117 117
118# various assembly files that depend on assym.h 118# various assembly files that depend on assym.h
119copy.o fp.o locore.o locore_mips1.o locore_mips3.o: assym.h 119copy.o fp.o locore.o locore_mips1.o locore_mips3.o: assym.h
120lock_stubs.o mips32_subr.o mips3_subr.o mips5900_subr.o: assym.h 120lock_stubs.o mips32_subr.o mips3_subr.o mips5900_subr.o: assym.h
121mips64_subr.o mipsX_subr.o sigcode.o: assym.h 121mips64_subr.o mipsX_subr.o sigcode.o: assym.h
122 122
123 123
124## 124##
125## (7) misc settings 125## (7) misc settings
126## 126##
127 127
128## 128##
129## (8) config(8) generated machinery 129## (8) config(8) generated machinery
130## 130##
131%INCLUDES 131%INCLUDES
132 132
133%OBJS 133%OBJS
134 134
135%CFILES 135%CFILES
136 136
137%SFILES 137%SFILES
138 138
139%LOAD 139%LOAD
140 140
141%RULES 141%RULES
142 142
143## 143##
144## (9) port independent kernel machinery 144## (9) port independent kernel machinery
145## 145##
146.include "$S/conf/Makefile.kern.inc" 146.include "$S/conf/Makefile.kern.inc"
147 147
148## 148##
149## (10) Appending make options. 149## (10) Appending make options.
150## 150##
151%MAKEOPTIONSAPPEND 151%MAKEOPTIONSAPPEND

cvs diff -r1.8 -r1.9 src/sys/arch/mips/include/Makefile.inc (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 (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,114 +1,114 @@ @@ -1,114 +1,114 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
28MVME68K= $S/arch/mvme68k 28MVME68K= $S/arch/mvme68k
29GENASSYM_CONF= ${MVME68K}/mvme68k/genassym.cf 29GENASSYM_CONF= ${MVME68K}/mvme68k/genassym.cf
30 30
31## 31##
32## (2) compile settings 32## (2) compile settings
33## 33##
34CPPFLAGS+= -Dmvme68k 34CPPFLAGS+= -Dmvme68k
35.if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177) 35.if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177)
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
63.include "$S/arch/m68k/060sp/Makefile.inc" 63.include "$S/arch/m68k/060sp/Makefile.inc"
64 64
65MD_OBJS= locore.o ${FPSP} 65MD_OBJS= locore.o ${FPSP}
66MD_CFILES= 66MD_CFILES=
67MD_SFILES= ${MVME68K}/mvme68k/locore.s 67MD_SFILES= ${MVME68K}/mvme68k/locore.s
68 68
69 69
70locore.o: ${MVME68K}/mvme68k/locore.s assym.h 70locore.o: ${MVME68K}/mvme68k/locore.s assym.h
71 ${NORMAL_S} 71 ${NORMAL_S}
72## 72##
73## (5) link settings 73## (5) link settings
74## 74##
75LINKFORMAT= -n 75LINKFORMAT= -n
76TEXTADDR?= 8000 76TEXTADDR?= 8000
77 77
78## 78##
79## (6) port specific target dependencies 79## (6) port specific target dependencies
80## 80##
81 81
82# depend on CPU configuration 82# depend on CPU configuration
83locore.o pmap.o sys_machdep.o trap.o: Makefile 83locore.o pmap.o sys_machdep.o trap.o: Makefile
84 84
85copy.o copypage.o lock_stubs.o: assym.h 85copy.o copypage.o lock_stubs.o: assym.h
86 86
87## 87##
88## (7) misc settings 88## (7) misc settings
89## 89##
90 90
91## 91##
92## (8) config(8) generated machinery 92## (8) config(8) generated machinery
93## 93##
94%INCLUDES 94%INCLUDES
95 95
96%OBJS 96%OBJS
97 97
98%CFILES 98%CFILES
99 99
100%SFILES 100%SFILES
101 101
102%LOAD 102%LOAD
103 103
104%RULES 104%RULES
105 105
106## 106##
107## (9) port independent kernel machinery 107## (9) port independent kernel machinery
108## 108##
109.include "$S/conf/Makefile.kern.inc" 109.include "$S/conf/Makefile.kern.inc"
110 110
111## 111##
112## (10) Appending make options. 112## (10) Appending make options.
113## 113##
114%MAKEOPTIONSAPPEND 114%MAKEOPTIONSAPPEND

cvs diff -r1.9 -r1.10 src/sys/arch/mvme68k/stand/bootxx/Makefile (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 (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 (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,34 +1,34 @@ @@ -1,34 +1,34 @@
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}
22 22
23sboot.srec: ${PROG} 23sboot.srec: ${PROG}
24 ${OBJCOPY} -O srec ${.OBJDIR}/sboot ${.TARGET} 24 ${OBJCOPY} -O srec ${.OBJDIR}/sboot ${.TARGET}
25 25
26.include "../Makefile.booters" 26.include "../Makefile.booters"
27 27
28all realall: sboot.srec 28all realall: sboot.srec
29 29
30install: sboot.srec 30install: sboot.srec
31 ${INSTALL_FILE} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 31 ${INSTALL_FILE} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
32 ${.OBJDIR}/sboot.srec ${DESTDIR}${MDEC_DIR}/sboot 32 ${.OBJDIR}/sboot.srec ${DESTDIR}${MDEC_DIR}/sboot
33 33
34.include <bsd.prog.mk> 34.include <bsd.prog.mk>

cvs diff -r1.19 -r1.20 src/sys/arch/news68k/conf/Makefile.news68k (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,98 +1,98 @@ @@ -1,98 +1,98 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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
53locore.o: ${NEWS68K}/news68k/locore.s assym.h 53locore.o: ${NEWS68K}/news68k/locore.s assym.h
54 ${NORMAL_S} 54 ${NORMAL_S}
55 55
56## 56##
57## (5) link settings 57## (5) link settings
58## 58##
59LINKFORMAT= -n 59LINKFORMAT= -n
60TEXTADDR?= 0 60TEXTADDR?= 0
61 61
62## 62##
63## (6) port specific target dependencies 63## (6) port specific target dependencies
64## 64##
65 65
66# depend on CPU configuration 66# depend on CPU configuration
67machdep.o mainbus.o trap.o: Makefile 67machdep.o mainbus.o trap.o: Makefile
68 68
69copy.o copypage.o lock_stubs.o: assym.h 69copy.o copypage.o lock_stubs.o: assym.h
70 70
71## 71##
72## (7) misc settings 72## (7) misc settings
73## 73##
74 74
75## 75##
76## (8) config(8) generated machinery 76## (8) config(8) generated machinery
77## 77##
78%INCLUDES 78%INCLUDES
79 79
80%OBJS 80%OBJS
81 81
82%CFILES 82%CFILES
83 83
84%SFILES 84%SFILES
85 85
86%LOAD 86%LOAD
87 87
88%RULES 88%RULES
89 89
90## 90##
91## (9) port independent kernel machinery 91## (9) port independent kernel machinery
92## 92##
93.include "$S/conf/Makefile.kern.inc" 93.include "$S/conf/Makefile.kern.inc"
94 94
95## 95##
96## (10) Appending make options. 96## (10) Appending make options.
97## 97##
98%MAKEOPTIONSAPPEND 98%MAKEOPTIONSAPPEND

cvs diff -r1.29 -r1.30 src/sys/arch/next68k/conf/Makefile.next68k (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,98 +1,98 @@ @@ -1,98 +1,98 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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}
50MD_CFILES= 50MD_CFILES=
51MD_SFILES= ${NEXT68K}/next68k/locore.s 51MD_SFILES= ${NEXT68K}/next68k/locore.s
52 52
53locore.o: ${NEXT68K}/next68k/locore.s assym.h 53locore.o: ${NEXT68K}/next68k/locore.s assym.h
54 ${NORMAL_S} 54 ${NORMAL_S}
55 55
56copy.o copypage.o lock_stubs.o: assym.h 56copy.o copypage.o lock_stubs.o: assym.h
57 57
58## 58##
59## (5) link settings 59## (5) link settings
60## 60##
61LINKFORMAT= -n 61LINKFORMAT= -n
62TEXTADDR?= 0 62TEXTADDR?= 0
63 63
64## 64##
65## (6) port specific target dependencies 65## (6) port specific target dependencies
66## 66##
67 67
68# depend on CPU configuration 68# depend on CPU configuration
69locore.o pmap.o trap.o: Makefile 69locore.o pmap.o trap.o: Makefile
70 70
71## 71##
72## (7) misc settings 72## (7) misc settings
73## 73##
74 74
75## 75##
76## (8) config(8) generated machinery 76## (8) config(8) generated machinery
77## 77##
78%INCLUDES 78%INCLUDES
79 79
80%OBJS 80%OBJS
81 81
82%CFILES 82%CFILES
83 83
84%SFILES 84%SFILES
85 85
86%LOAD 86%LOAD
87 87
88%RULES 88%RULES
89 89
90## 90##
91## (9) port independent kernel machinery 91## (9) port independent kernel machinery
92## 92##
93.include "$S/conf/Makefile.kern.inc" 93.include "$S/conf/Makefile.kern.inc"
94 94
95## 95##
96## (10) Appending make options. 96## (10) Appending make options.
97## 97##
98%MAKEOPTIONSAPPEND 98%MAKEOPTIONSAPPEND

cvs diff -r1.23 -r1.24 src/sys/arch/prep/stand/boot/Makefile (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,79 +1,79 @@ @@ -1,79 +1,79 @@
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
42 42
43STRIPFLAG= 43STRIPFLAG=
44BINMODE= 444 44BINMODE= 444
45 45
46# XXX SHOULD NOT NEED TO DEFINE THESE! 46# XXX SHOULD NOT NEED TO DEFINE THESE!
47LIBCRT0= 47LIBCRT0=
48LIBC= 48LIBC=
49LIBCRTBEGIN= 49LIBCRTBEGIN=
50LIBCRTEND= 50LIBCRTEND=
51 51
52RELOC= 0x800000 52RELOC= 0x800000
53 53
54CLEANFILES+= vers.c machine powerpc ${PROG}.elf 54CLEANFILES+= vers.c machine powerpc ${PROG}.elf
55 55
56LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a 56LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
57 57
58.if !make(obj) && !make(clean) && !make(cleandir) 58.if !make(obj) && !make(clean) && !make(cleandir)
59.BEGIN: machine powerpc 59.BEGIN: machine powerpc
60.NOPATH: machine powerpc 60.NOPATH: machine powerpc
61 61
62machine:: 62machine::
63 -rm -f $@ 63 -rm -f $@
64 ln -s ${S}/arch/${MACHINE}/include $@ 64 ln -s ${S}/arch/${MACHINE}/include $@
65 65
66powerpc:: 66powerpc::
67 -rm -f $@ 67 -rm -f $@
68 ln -s ${S}/arch/powerpc/include $@ 68 ln -s ${S}/arch/powerpc/include $@
69.endif 69.endif
70 70
71vers.c: ${.CURDIR}/../boot/version 71vers.c: ${.CURDIR}/../boot/version
72 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "prep" ${NEWVERSWHAT} 72 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "prep" ${NEWVERSWHAT}
73 73
74${PROG}: ${OBJS} ${LIBS} 74${PROG}: ${OBJS} ${LIBS}
75 ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \ 75 ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \
76 -Ttext ${RELOC} ${OBJS} ${LIBS} 76 -Ttext ${RELOC} ${OBJS} ${LIBS}
77 ${STRIP} -o ${PROG} ${PROG}.elf 77 ${STRIP} -o ${PROG} ${PROG}.elf
78 78
79.include <bsd.prog.mk> 79.include <bsd.prog.mk>

cvs diff -r1.2 -r1.3 src/sys/arch/rs6000/stand/boot/Makefile (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,73 +1,73 @@ @@ -1,73 +1,73 @@
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
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+= 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=
43LIBCRTBEGIN= 43LIBCRTBEGIN=
44LIBCRTEND= 44LIBCRTEND=
45 45
46RELOC= 0x800000 46RELOC= 0x800000
47#RELOC= 0x0 47#RELOC= 0x0
48 48
49CLEANFILES+= vers.c machine powerpc 49CLEANFILES+= vers.c machine powerpc
50 50
51LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a 51LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
52 52
53.if !make(obj) && !make(clean) && !make(cleandir) 53.if !make(obj) && !make(clean) && !make(cleandir)
54.BEGIN: machine powerpc 54.BEGIN: machine powerpc
55.NOPATH: machine powerpc 55.NOPATH: machine powerpc
56 56
57machine:: 57machine::
58 -rm -f $@ 58 -rm -f $@
59 ln -s ${S}/arch/${MACHINE}/include $@ 59 ln -s ${S}/arch/${MACHINE}/include $@
60 60
61powerpc:: 61powerpc::
62 -rm -f $@ 62 -rm -f $@
63 ln -s ${S}/arch/powerpc/include $@ 63 ln -s ${S}/arch/powerpc/include $@
64.endif 64.endif
65 65
66vers.c: ${.CURDIR}/../boot/version 66vers.c: ${.CURDIR}/../boot/version
67 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT} 67 ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}
68 68
69${PROG}: ${OBJS} ${LIBS} 69${PROG}: ${OBJS} ${LIBS}
70 ${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \ 70 ${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \
71 -Ttext ${RELOC} ${OBJS} ${LIBS} 71 -Ttext ${RELOC} ${OBJS} ${LIBS}
72 72
73.include <bsd.prog.mk> 73.include <bsd.prog.mk>

cvs diff -r1.26 -r1.27 src/sys/arch/sh3/conf/Makefile.sh3 (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,96 +1,96 @@ @@ -1,96 +1,96 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20USETOOLS?= no 20USETOOLS?= no
21NEED_OWN_INSTALL_TARGET?=no 21NEED_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##
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
50 50
51locore.o: ${THISSH3}/${MACHINE}/locore.S assym.h 51locore.o: ${THISSH3}/${MACHINE}/locore.S assym.h
52 ${NORMAL_S} 52 ${NORMAL_S}
53 53
54cpu_in_cksum.o exception_vector.o locore_subr.o: assym.h 54cpu_in_cksum.o exception_vector.o locore_subr.o: assym.h
55 55
56## 56##
57## (5) link settings 57## (5) link settings
58## 58##
59TEXTADDR?= ${DEFTEXTADDR} 59TEXTADDR?= ${DEFTEXTADDR}
60LINKFLAGS_NORMAL= -X 60LINKFLAGS_NORMAL= -X
61 61
62## 62##
63## (6) port specific target dependencies 63## (6) port specific target dependencies
64## 64##
65 65
66# depend on CPU configuration 66# depend on CPU configuration
67locore.o machdep.o: Makefile 67locore.o machdep.o: Makefile
68 68
69## 69##
70## (7) misc settings 70## (7) misc settings
71## 71##
72 72
73## 73##
74## (8) config(8) generated machinery 74## (8) config(8) generated machinery
75## 75##
76%INCLUDES 76%INCLUDES
77 77
78%OBJS 78%OBJS
79 79
80%CFILES 80%CFILES
81 81
82%SFILES 82%SFILES
83 83
84%LOAD 84%LOAD
85 85
86%RULES 86%RULES
87 87
88## 88##
89## (9) port independent kernel machinery 89## (9) port independent kernel machinery
90## 90##
91.include "$S/conf/Makefile.kern.inc" 91.include "$S/conf/Makefile.kern.inc"
92 92
93## 93##
94## (10) Appending make options. 94## (10) Appending make options.
95## 95##
96%MAKEOPTIONSAPPEND 96%MAKEOPTIONSAPPEND

cvs diff -r1.19 -r1.20 src/sys/arch/sun2/conf/Makefile.sun2 (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,108 +1,108 @@ @@ -1,108 +1,108 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68000 20MACHINE_ARCH=m68000
21USETOOLS?= no 21USETOOLS?= 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##
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
50MD_CFILES= 50MD_CFILES=
51MD_SFILES= ${SUN2}/sun2/locore.s 51MD_SFILES= ${SUN2}/sun2/locore.s
52 52
53locore.o: ${SUN2}/sun2/locore.s 53locore.o: ${SUN2}/sun2/locore.s
54 ${NORMAL_S} 54 ${NORMAL_S}
55 55
56## 56##
57## (5) link settings 57## (5) link settings
58## 58##
59LINKFORMAT= -N 59LINKFORMAT= -N
60TEXTADDR?= 00006000 60TEXTADDR?= 00006000
61 61
62## 62##
63## (6) port specific target dependencies 63## (6) port specific target dependencies
64## 64##
65 65
66# For cross-compilation, the "gcc -M" mkdep script is convenient, 66# For cross-compilation, the "gcc -M" mkdep script is convenient,
67# but that does not correctly make rules from *.s files. The 67# but that does not correctly make rules from *.s files. The
68# easiest work-around is to just list those dependencies here. 68# easiest work-around is to just list those dependencies here.
69locore.o: assym.h m68k/asm.h m68k/trap.h 69locore.o: assym.h m68k/asm.h m68k/trap.h
70copy.o: assym.h m68k/asm.h $S/sys/errno.h 70copy.o: assym.h m68k/asm.h $S/sys/errno.h
71bcopy.o: assym.h m68k/asm.h 71bcopy.o: assym.h m68k/asm.h
72copypage.o: assym.h m68k/asm.h 72copypage.o: assym.h m68k/asm.h
73lock_stubs.o: assym.h 73lock_stubs.o: assym.h
74 74
75# depend on CPU configuration 75# depend on CPU configuration
76db_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile 76db_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile
77 77
78# depends on DDB, etc. 78# depends on DDB, etc.
79stub.o: Makefile 79stub.o: Makefile
80 80
81## 81##
82## (7) misc settings 82## (7) misc settings
83## 83##
84 84
85## 85##
86## (8) config(8) generated machinery 86## (8) config(8) generated machinery
87## 87##
88%INCLUDES 88%INCLUDES
89 89
90%OBJS 90%OBJS
91 91
92%CFILES 92%CFILES
93 93
94%SFILES 94%SFILES
95 95
96%LOAD 96%LOAD
97 97
98%RULES 98%RULES
99 99
100## 100##
101## (9) port independent kernel machinery 101## (9) port independent kernel machinery
102## 102##
103.include "$S/conf/Makefile.kern.inc" 103.include "$S/conf/Makefile.kern.inc"
104 104
105## 105##
106## (10) Appending make options. 106## (10) Appending make options.
107## 107##
108%MAKEOPTIONSAPPEND 108%MAKEOPTIONSAPPEND

cvs diff -r1.100 -r1.101 src/sys/arch/sun3/conf/Makefile.sun3 (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,109 +1,109 @@ @@ -1,109 +1,109 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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##
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
50locore.o: ${SUN3}/${MACHTYPE}/locore.s 50locore.o: ${SUN3}/${MACHTYPE}/locore.s
51 ${NORMAL_S} 51 ${NORMAL_S}
52 52
53## 53##
54## (5) link settings 54## (5) link settings
55## 55##
56.if ${MACHTYPE} == "sun3x" 56.if ${MACHTYPE} == "sun3x"
57TEXTADDR?= F8004000 57TEXTADDR?= F8004000
58.else 58.else
59TEXTADDR?= 0E004000 59TEXTADDR?= 0E004000
60.endif 60.endif
61LINKFORMAT= -N 61LINKFORMAT= -N
62 62
63## 63##
64## (6) port specific target dependencies 64## (6) port specific target dependencies
65## 65##
66 66
67# For cross-compilation, the "gcc -M" mkdep script is convenient, 67# For cross-compilation, the "gcc -M" mkdep script is convenient,
68# but that does not correctly make rules from *.s files. The 68# but that does not correctly make rules from *.s files. The
69# easiest work-around is to just list those dependencies here. 69# easiest work-around is to just list those dependencies here.
70locore.o: assym.h m68k/asm.h m68k/trap.h 70locore.o: assym.h m68k/asm.h m68k/trap.h
71copy.o: assym.h m68k/asm.h $S/sys/errno.h 71copy.o: assym.h m68k/asm.h $S/sys/errno.h
72bcopy.o: assym.h m68k/asm.h 72bcopy.o: assym.h m68k/asm.h
73copypage.o: assym.h m68k/asm.h 73copypage.o: assym.h m68k/asm.h
74lock_stubs.o: assym.h 74lock_stubs.o: assym.h
75 75
76# depend on CPU configuration 76# depend on CPU configuration
77db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile 77db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile
78 78
79# depends on DDB, etc. 79# depends on DDB, etc.
80stub.o: Makefile 80stub.o: Makefile
81 81
82## 82##
83## (7) misc settings 83## (7) misc settings
84## 84##
85 85
86## 86##
87## (8) config(8) generated machinery 87## (8) config(8) generated machinery
88## 88##
89%INCLUDES 89%INCLUDES
90 90
91%OBJS 91%OBJS
92 92
93%CFILES 93%CFILES
94 94
95%SFILES 95%SFILES
96 96
97%LOAD 97%LOAD
98 98
99%RULES 99%RULES
100 100
101## 101##
102## (9) port independent kernel machinery 102## (9) port independent kernel machinery
103## 103##
104.include "$S/conf/Makefile.kern.inc" 104.include "$S/conf/Makefile.kern.inc"
105 105
106## 106##
107## (10) Appending make options. 107## (10) Appending make options.
108## 108##
109%MAKEOPTIONSAPPEND 109%MAKEOPTIONSAPPEND

cvs diff -r1.3 -r1.4 src/sys/arch/usermode/conf/Makefile.usermode (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,70 +1,70 @@ @@ -1,70 +1,70 @@
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
36## 36##
37## (5) link settings 37## (5) link settings
38## 38##
39 39
40## 40##
41## (6) port specific target dependencies 41## (6) port specific target dependencies
42## 42##
43 43
44## 44##
45## (7) misc settings 45## (7) misc settings
46## 46##
47 47
48## 48##
49## (8) config(8) generated machinery 49## (8) config(8) generated machinery
50%INCLUDES 50%INCLUDES
51 51
52%OBJS 52%OBJS
53 53
54%CFILES 54%CFILES
55 55
56%SFILES 56%SFILES
57 57
58%LOAD 58%LOAD
59 59
60%RULES 60%RULES
61 61
62## 62##
63## (9) port independent kernel machinery 63## (9) port independent kernel machinery
64## 64##
65.include "$S/conf/Makefile.kern.inc" 65.include "$S/conf/Makefile.kern.inc"
66 66
67## 67##
68## (10) appending make options 68## (10) appending make options
69## 69##
70%MAKEOPTIONSAPPEND 70%MAKEOPTIONSAPPEND

cvs diff -r1.80 -r1.81 src/sys/arch/vax/conf/Makefile.vax (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,104 +1,104 @@ @@ -1,104 +1,104 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH= vax 20MACHINE_ARCH= vax
21USETOOLS?= no 21USETOOLS?= 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
49 49
50intvec.o: ${VAX}/vax/intvec.S assym.h 50intvec.o: ${VAX}/vax/intvec.S assym.h
51 ${NORMAL_S} 51 ${NORMAL_S}
52 52
53subr.o: ${VAX}/vax/subr.S assym.h 53subr.o: ${VAX}/vax/subr.S assym.h
54 ${NORMAL_S} 54 ${NORMAL_S}
55 55
56## 56##
57## (5) link settings 57## (5) link settings
58## 58##
59TEXTADDR?= 80000000 59TEXTADDR?= 80000000
60LINKFORMAT= -N 60LINKFORMAT= -N
61LINKFLAGS_DEBUG= -X 61LINKFLAGS_DEBUG= -X
62LINKFLAGS_NORMAL= -S 62LINKFLAGS_NORMAL= -S
63 63
64## 64##
65## (6) port specific target dependencies 65## (6) port specific target dependencies
66## 66##
67 67
68# depend on CPU configuration 68# depend on CPU configuration
69tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile 69tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
70sbi.o subr.o: Makefile 70sbi.o subr.o: Makefile
71 71
72lock_stubs.o unimpl_emul.o: assym.h 72lock_stubs.o unimpl_emul.o: assym.h
73 73
74## 74##
75## (7) misc settings 75## (7) misc settings
76## 76##
77 77
78# XXX recent gcc4 gets ICE on this one 78# XXX recent gcc4 gets ICE on this one
79COPTS.db_command.c+= -fno-tree-ter 79COPTS.db_command.c+= -fno-tree-ter
80 80
81## 81##
82## (8) config(8) generated machinery 82## (8) config(8) generated machinery
83## 83##
84%INCLUDES 84%INCLUDES
85 85
86%OBJS 86%OBJS
87 87
88%CFILES 88%CFILES
89 89
90%SFILES 90%SFILES
91 91
92%LOAD 92%LOAD
93 93
94%RULES 94%RULES
95 95
96## 96##
97## (9) port independent kernel machinery 97## (9) port independent kernel machinery
98## 98##
99.include "$S/conf/Makefile.kern.inc" 99.include "$S/conf/Makefile.kern.inc"
100 100
101## 101##
102## (10) Appending make options. 102## (10) Appending make options.
103## 103##
104%MAKEOPTIONSAPPEND 104%MAKEOPTIONSAPPEND

cvs diff -r1.61 -r1.62 src/sys/arch/x68k/conf/Makefile.x68k (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,112 +1,112 @@ @@ -1,112 +1,112 @@
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#
15# To specify debugging, add the config line: makeoptions DEBUG="-g" 15# To specify debugging, add the config line: makeoptions DEBUG="-g"
16# A better way is to specify -g only for a few files. 16# A better way is to specify -g only for a few files.
17# 17#
18# makeoptions DEBUGLIST="uvm* trap if_*" 18# makeoptions DEBUGLIST="uvm* trap if_*"
19 19
20MACHINE_ARCH=m68k 20MACHINE_ARCH=m68k
21USETOOLS?= no 21USETOOLS?= 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"
49 49
50# for the Motorola 68060 Software Support Package 50# for the Motorola 68060 Software Support Package
51.include "$S/arch/m68k/060sp/Makefile.inc" 51.include "$S/arch/m68k/060sp/Makefile.inc"
52 52
53MD_OBJS= locore.o ${FPSP} 53MD_OBJS= locore.o ${FPSP}
54MD_CFILES= 54MD_CFILES=
55MD_SFILES= ${X68K}/x68k/locore.s 55MD_SFILES= ${X68K}/x68k/locore.s
56 56
57locore.o: ${X68K}/x68k/locore.s assym.h Makefile 57locore.o: ${X68K}/x68k/locore.s assym.h Makefile
58 ${NORMAL_S} 58 ${NORMAL_S}
59 59
60copy.o copypage.o lock_stubs.o: assym.h 60copy.o copypage.o lock_stubs.o: assym.h
61 61
62## 62##
63## (5) link settings 63## (5) link settings
64## 64##
65TEXTADDR?= 0 65TEXTADDR?= 0
66LINKFORMAT= -n 66LINKFORMAT= -n
67 67
68## 68##
69## (6) port specific target dependencies 69## (6) port specific target dependencies
70## 70##
71 71
72# depend on root or device configuration 72# depend on root or device configuration
73autoconf.o conf.o: Makefile 73autoconf.o conf.o: Makefile
74 74
75# depend on maxusers 75# depend on maxusers
76machdep.o: Makefile 76machdep.o: Makefile
77 77
78# depend on DEBUG and/or DIAGNOSTIC options 78# depend on DEBUG and/or DIAGNOSTIC options
79grf.o par.o sram.o: Makefile 79grf.o par.o sram.o: Makefile
80intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile 80intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile
81intio.o vm_machdep.o: Makefile 81intio.o vm_machdep.o: Makefile
82 82
83## 83##
84## (7) misc settings 84## (7) misc settings
85## 85##
86 86
87 87
88 88
89## 89##
90## (8) config(8) generated machinery 90## (8) config(8) generated machinery
91## 91##
92%INCLUDES 92%INCLUDES
93 93
94%OBJS 94%OBJS
95 95
96%CFILES 96%CFILES
97 97
98%SFILES 98%SFILES
99 99
100%LOAD 100%LOAD
101 101
102%RULES 102%RULES
103 103
104## 104##
105## (9) port independent kernel machinery 105## (9) port independent kernel machinery
106## 106##
107.include "$S/conf/Makefile.kern.inc" 107.include "$S/conf/Makefile.kern.inc"
108 108
109## 109##
110## (10) Appending make options. 110## (10) Appending make options.
111## 111##
112%MAKEOPTIONSAPPEND 112%MAKEOPTIONSAPPEND