Only pull in the MD files if they exist. This allows for progressive
implementation and compilation when bringing up a new architecture.
This commit is contained in:
parent
904cc0c45c
commit
545d32087b
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user