summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/Makefile.inc2
-rw-r--r--lib/libc/net/Makefile.inc2
-rw-r--r--lib/libc/stdlib/Makefile.inc2
-rw-r--r--lib/libc/string/Makefile.inc2
-rw-r--r--lib/libc/sys/Makefile.inc2
5 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 47a137f..4d2806b 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -32,7 +32,9 @@ SRCS+= __xuname.c _pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \
wait.c wait3.c waitpid.c
# machine-dependent gen sources
+.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/gen/Makefile.inc)
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/gen/Makefile.inc"
+.endif
.if ${LIB} == "c"
MAN+= alarm.3 arc4random.3 clock.3 \
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc
index 6b735fb..8144f40 100644
--- a/lib/libc/net/Makefile.inc
+++ b/lib/libc/net/Makefile.inc
@@ -37,7 +37,9 @@ nslexer.c: nslexer.l nsparser.h
sed -e '/YY_BUF_SIZE/s/16384/1024/' >${.TARGET}
# machine-dependent net sources
+.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/net/Makefile.inc)
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/net/Makefile.inc"
+.endif
.if ${LIB} == "c"
MAN+= addr2ascii.3 byteorder.3 ethers.3 getaddrinfo.3 gethostbyname.3 \
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 9a96360..e38704a 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -21,7 +21,9 @@ SRCS+= strtod.c
.endif
# machine-dependent stdlib sources
+.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc)
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc"
+.endif
.if ${LIB} == "c"
MAN+= abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 bsearch.3 \
diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc
index e75bb65..9c9f369 100644
--- a/lib/libc/string/Makefile.inc
+++ b/lib/libc/string/Makefile.inc
@@ -18,7 +18,9 @@ MISRCS+=bcmp.c bcopy.c bzero.c ffs.c index.c memccpy.c memchr.c memcmp.c \
# machine-dependent string sources
+.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/string/Makefile.inc)
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/string/Makefile.inc"
+.endif
.if ${LIB} == "c"
MAN+= bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 607ee9d..912f235 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -13,7 +13,9 @@
# MDASM names override the default syscall names in MIASM.
# NOASM will prevent the default syscall code from being generated.
#
+.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/sys/Makefile.inc)
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/sys/Makefile.inc"
+.endif
# Sources common to both syscall interfaces:
SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c __error.c
OpenPOWER on IntegriCloud