Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/fdpass Slightly reaarange, so that the 32bit versi...



details:   https://anonhg.NetBSD.org/src/rev/aa95ee6372f3
branches:  trunk
changeset: 781046:aa95ee6372f3
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Aug 16 10:14:03 2012 +0000

description:
Slightly reaarange, so that the 32bit version actually gets compiled
and linked with -m32.

diffstat:

 tests/net/fdpass/Makefile |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 2e0d2ed8bdae -r aa95ee6372f3 tests/net/fdpass/Makefile
--- a/tests/net/fdpass/Makefile Thu Aug 16 09:25:43 2012 +0000
+++ b/tests/net/fdpass/Makefile Thu Aug 16 10:14:03 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2012/08/13 11:15:05 christos Exp $
+# $NetBSD: Makefile,v 1.2 2012/08/16 10:14:03 martin Exp $
 #
 
 .include <bsd.own.mk>
@@ -8,15 +8,20 @@
 TESTS_SH=      t_fdpass
 
 PROGS=          fdpass64 fdpass32
-SRCS.fdpass64=   fdpass.c
 MAN.fdpass64=    # empty
 BINDIR.fdpass64= ${TESTSDIR}
 
 .if ${MACHINE} == "sparc64" || ${MACHINE} == "amd64"
-CFLAGS.fdpass32= -m32
+COPTS.fdpass32.c       += -m32
+LDFLAGS.fdpass32       += -m32
 .endif
-SRCS.fdpass32=   fdpass.c
 MAN.fdpass32=    # empty
 BINDIR.fdpass32= ${TESTSDIR}
 
+
+fdpass64.c fdpass32.c: fdpass.c
+       ln -s ${.CURDIR}/fdpass.c ${.TARGET}
+
+CLEANFILES     += fdpass64.c fdpass32.c
+
 .include <bsd.test.mk>



Home | Main Index | Thread Index | Old Index