| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.5 2009/02/18 06:09:55 uebayasi Exp $ | | 1 | # $NetBSD: Makefile,v 1.6 2009/02/20 02:43:02 uebayasi Exp $ |
2 | | | 2 | |
3 | NOMAN= # defined | | 3 | NOMAN= # defined |
4 | | | 4 | |
5 | .include <bsd.own.mk> | | 5 | .include <bsd.own.mk> |
6 | .include <bsd.obj.mk> | | 6 | .include <bsd.obj.mk> |
7 | | | 7 | |
8 | .if ${MKPIC} != "no" | | 8 | .if ${MKPIC} != "no" |
9 | | | 9 | |
10 | SHLINKINSTALLDIR= /usr/libexec | | 10 | SHLINKINSTALLDIR= /usr/libexec |
11 | | | 11 | |
12 | LDFLAGS+= -m32 | | 12 | LDFLAGS+= -m32 |
13 | | | 13 | |
14 | #CPPFLAGS+= -DDEBUG | | 14 | #CPPFLAGS+= -DDEBUG |
| @@ -20,25 +20,25 @@ LDFLAGS+= -m32 | | | @@ -20,25 +20,25 @@ LDFLAGS+= -m32 |
20 | | | 20 | |
21 | .PATH: ${NETBSDSRCDIR}/libexec/ld.elf_so | | 21 | .PATH: ${NETBSDSRCDIR}/libexec/ld.elf_so |
22 | .CURDIR:=${NETBSDSRCDIR}/libexec/ld.elf_so | | 22 | .CURDIR:=${NETBSDSRCDIR}/libexec/ld.elf_so |
23 | | | 23 | |
24 | # XXX | | 24 | # XXX |
25 | .if ${MACHINE_ARCH} == "sparc64" | | 25 | .if ${MACHINE_ARCH} == "sparc64" |
26 | PROG= ld.elf_so-sparc | | 26 | PROG= ld.elf_so-sparc |
27 | ARCHSUBDIR= sparc | | 27 | ARCHSUBDIR= sparc |
28 | .elif ${MACHINE_ARCH} == "x86_64" | | 28 | .elif ${MACHINE_ARCH} == "x86_64" |
29 | PROG= ld.elf_so-i386 | | 29 | PROG= ld.elf_so-i386 |
30 | ARCHSUBDIR= i386 | | 30 | ARCHSUBDIR= i386 |
31 | .endif | | 31 | .endif |
32 | | | 32 | |
33 | ## XXX why do i need this? | | 33 | # XXX why do i need this? |
34 | #dependall: ${PROG} | | 34 | dependall: ${PROG} |
35 | | | 35 | |
36 | .include "${.CURDIR}/Makefile" | | 36 | .include "${.CURDIR}/Makefile" |
37 | | | 37 | |
38 | .if ${MACHINE_ARCH} == "sparc64" | | 38 | .if ${MACHINE_ARCH} == "sparc64" |
39 | # XXX: Turn on big pic for sparc, because we somehow are generating GOT13 | | 39 | # XXX: Turn on big pic for sparc, because we somehow are generating GOT13 |
40 | # relocations. Why?!? | | 40 | # relocations. Why?!? |
41 | CPPFLAGS+=-fPIC | | 41 | CPPFLAGS+=-fPIC |
42 | .endif | | 42 | .endif |
43 | | | 43 | |
44 | .endif | | 44 | .endif |