| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.rump,v 1.33 2009/02/12 13:23:17 lukem Exp $ | | 1 | # $NetBSD: Makefile.rump,v 1.34 2009/03/19 12:01:50 pooka Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | WARNS?= 3 # XXX: src/sys won't compile with -Wsign-compare yet | | 4 | WARNS?= 3 # XXX: src/sys won't compile with -Wsign-compare yet |
5 | NOLINT= # kernel code | | 5 | NOLINT= # kernel code |
6 | | | 6 | |
7 | .include <bsd.own.mk> | | 7 | .include <bsd.own.mk> |
8 | | | 8 | |
9 | # use kernel ABI instead of rump ABI (needs md code) | | 9 | # use kernel ABI instead of rump ABI (needs md code) |
10 | .ifndef RUMPKMOD | | 10 | .ifndef RUMPKMOD |
11 | CPPFLAGS:= -I${RUMPTOP}/include ${CPPFLAGS} | | 11 | CPPFLAGS:= -I${RUMPTOP}/include ${CPPFLAGS} |
12 | .endif | | 12 | .endif |
13 | | | 13 | |
14 | CFLAGS+= -ffreestanding -fno-strict-aliasing | | 14 | CFLAGS+= -ffreestanding -fno-strict-aliasing |
| @@ -46,21 +46,21 @@ DPSRCS+= ${RUMPTOP}/Makefile.rump | | | @@ -46,21 +46,21 @@ DPSRCS+= ${RUMPTOP}/Makefile.rump |
46 | # Unfortunately, we do not know which of the symbols are generated by | | 46 | # Unfortunately, we do not know which of the symbols are generated by |
47 | # the toolchain. Worse, they vary from platform to platform and | | 47 | # the toolchain. Worse, they vary from platform to platform and |
48 | # toolchain to toolchain. The good news, however, is that this will | | 48 | # toolchain to toolchain. The good news, however, is that this will |
49 | # be detected by a compile-time failure, so we can fairly easily manage | | 49 | # be detected by a compile-time failure, so we can fairly easily manage |
50 | # a quirktable here. | | 50 | # a quirktable here. |
51 | .if ${MACHINE_CPU} == "mips" | | 51 | .if ${MACHINE_CPU} == "mips" |
52 | _SYMQUIRK='|_gp_disp' | | 52 | _SYMQUIRK='|_gp_disp' |
53 | .elif ${MACHINE_CPU} == "hppa" | | 53 | .elif ${MACHINE_CPU} == "hppa" |
54 | _SYMQUIRK='|\$$\$$' | | 54 | _SYMQUIRK='|\$$\$$' |
55 | .endif | | 55 | .endif |
56 | __archivebuild: .USE | | 56 | __archivebuild: .USE |
57 | ${_MKTARGET_BUILD} | | 57 | ${_MKTARGET_BUILD} |
58 | rm -f ${.TARGET} | | 58 | rm -f ${.TARGET} |
59 | ${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}` | | 59 | ${AR} ${_ARFL} ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}` |
60 | ${NM} -go ${.TARGET} | ${TOOL_AWK} ' \ | | 60 | ${NM} -go ${.TARGET} | ${TOOL_AWK} ' \ |
61 | $$NF!~/^(rump|RUMP|__|_GLOBAL_OFFSET_TABLE'${_SYMQUIRK}')/ \ | | 61 | $$NF!~/^(rump|RUMP|__|_GLOBAL_OFFSET_TABLE'${_SYMQUIRK}')/ \ |
62 | {printf "%s rumpns_%s\n", $$NF, $$NF}' \ | | 62 | {printf "%s rumpns_%s\n", $$NF, $$NF}' \ |
63 | | sort | uniq > renametab.${.TARGET} | | 63 | | sort | uniq > renametab.${.TARGET} |
64 | ${OBJCOPY} --redefine-syms renametab.${.TARGET} ${.TARGET} | | 64 | ${OBJCOPY} --redefine-syms renametab.${.TARGET} ${.TARGET} |
65 | rm -f renametab.${.TARGET} | | 65 | rm -f renametab.${.TARGET} |
66 | ${RANLIB} ${.TARGET} | | 66 | ${RANLIB} ${.TARGET} |