aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2004-08-22 10:59:33 +0000
committerDavid Xu <davidxu@FreeBSD.org>2004-08-22 10:59:33 +0000
commita1ad8d2ae712fd6ec20931a290845ad34ad37448 (patch)
tree6774e4f83d543d2cf250ce762d6818878c8db2fa /gnu/usr.bin
parent867667fec17db271e06cb736afd579b8f6fbf302 (diff)
downloadsrc-a1ad8d2ae712fd6ec20931a290845ad34ad37448.tar.gz
src-a1ad8d2ae712fd6ec20931a290845ad34ad37448.zip
Only compile fbsd-thread.c on amd64 and i386, other architectures
have not been tested yet.
Notes
Notes: svn path=/head/; revision=134154
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gdb/libgdb/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/Makefile b/gnu/usr.bin/gdb/libgdb/Makefile
index fc597831e41f..8857f76f5611 100644
--- a/gnu/usr.bin/gdb/libgdb/Makefile
+++ b/gnu/usr.bin/gdb/libgdb/Makefile
@@ -37,10 +37,14 @@ SRCS= annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c bcache.c \
tui-stack.c tui-win.c tui-windata.c tui-wingeneral.c \
tui-winsource.c typeprint.c ui-file.c ui-out.c user-regs.c \
utils.c valarith.c valops.c valprint.c values.c varobj.c \
- wrapper.c fbsd-threads.c ${LIBSRCS}
+ wrapper.c ${LIBSRCS}
GENSRCS= version.c
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+LIBSRCS+= fbsd-threads.c
+.endif
+
version.c:
echo '#include "version.h"' > ${.TARGET}
echo 'const char version[] = ${VERSION};' >> ${.TARGET}