]> Zhao Yanbai Git Server - minix.git/commitdiff
Clean up arch Makefiles for libminc
authorArun Thomas <arun@minix3.org>
Fri, 10 Aug 2012 17:02:30 +0000 (19:02 +0200)
committerArun Thomas <arun@minix3.org>
Fri, 10 Aug 2012 17:02:38 +0000 (19:02 +0200)
include/Makefile
include/arch/Makefile
lib/libminc/Makefile
lib/libminc/arch/i386/Makefile.libc.inc

index 5a120d103ab8f7a6b5dfa43d558f5e8aff6403eb..c34bb2d69f9133629047612931bc17085b81f683 100644 (file)
@@ -76,7 +76,7 @@ SUBDIR+=      ../common/include/prop
 
 .if defined(__MINIX)
 .include "Makefile.minix.inc"
-SUBDIR+=       arch/${MACHINE}
+SUBDIR+=       arch/${MACHINE_ARCH}
 SUBDIR+=       arch sys minix
 SUBDIR+=       net netinet netinet6
 .endif
index d9989a0b87358a65d7c64ea93a8915edb6d856b9..0cae09c6ac3b8b75327930f9c7a6d794939d8e6c 100644 (file)
@@ -53,7 +53,7 @@ SUBDIR+= xen
 #      x68k x86_64 xen \
 #      zaurus
 
-INCSYMLINKS= ${MACHINE} /usr/include/machine
+INCSYMLINKS= ${MACHINE_ARCH} /usr/include/machine
 
 INCSYMLINKS+= machine/float.h /usr/include/float.h \
        machine/stdarg.h /usr/include/stdarg.h
index 21d84275fd81020266c153ed3dbbefb610272d19..3bad860584820079241690bec44144b41c01606a 100644 (file)
@@ -10,13 +10,11 @@ CPPFLAGS.sched_start.c+=    -I${NETBSDSRCDIR}
 
 LIBCSRCDIR=${NETBSDSRCDIR}/lib/libc
 
-MACHINE_ARCH=${MACHINE}
-
 #
 # Shared libc with userspace (/common/lib/libc)
 #
 .include "${NETBSDSRCDIR}/common/lib/libc/Makefile.inc"
-.include "${.CURDIR}/arch/${MACHINE}/Makefile.libc.inc"
+.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.libc.inc"
 .if empty(SRCS:Mbyte_swap_8.*)
 SRCS+= bswap64.c
 .endif
@@ -88,8 +86,8 @@ CLEANFILES+=  errlist.c
        isnanf_ieee754.c isnand_ieee754.c \
        isfinitef_ieee754.c isfinited_ieee754.c \
        signbitf_ieee754.c signbitd_ieee754.c \
-       nanf.c infinityl.c 
-.PATH.c: ${LIBCSRCDIR}/arch/${MACHINE}/gen ${LIBCSRCDIR}/gen/minix \
+       nanf.c
+.PATH.c: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/gen ${LIBCSRCDIR}/gen/minix \
        ${LIBCSRCDIR}/gen ${LIBCSRCDIR}
 SRCS+= ${i}
 CPPFLAGS.${i}+= -I${LIBCSRCDIR}/include
@@ -106,8 +104,8 @@ CPPFLAGS.${i}+= -I${LIBCSRCDIR}/include
 .endfor
 # Import from string
 .for i in strcspn.c strerror.c strerror_r.c strtol.c \
-       bcmp.S bcopy.S bzero.S 
-.PATH.S: ${LIBCSRCDIR}/arch/${MACHINE}/string
+       bcopy.S bzero.S
+.PATH.S: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string
 .PATH.c: ${LIBCSRCDIR}/string
 SRCS+= ${i}
 CPPFLAGS.${i}+= -D_LIBC -I${LIBCSRCDIR}/include
@@ -133,7 +131,7 @@ CPPFLAGS.${i}+= -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/locale
        stime.c syscall.c _ucontext.c umask.c unlink.c waitpid.c \
        brksize.S _ipc.S _senda.S ucontext.S mmap.c init.c
 .PATH.c: ${LIBCSRCDIR}/sys-minix
-.PATH.S: ${LIBCSRCDIR}/arch/${MACHINE}/sys-minix
+.PATH.S: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/sys-minix
 SRCS+= ${i}
 CPPFLAGS.${i}+= -I${LIBCSRCDIR}/include
 .endfor
index e4c2e2abbdd3b9fa870fa0c85bfe2e48cbe42b8c..63d72ab71eac634b9e719a7dc189efe623b29314 100644 (file)
@@ -2,3 +2,15 @@ SRCS+=         byte_swap_2.S byte_swap_4.S ffs.S _setjmp.S
 SRCS+=  memchr.S memcmp.S memcpy.S memmove.S memset.S \
        strcat.S strchr.S strcmp.S strcpy.S strlen.S \
        strncmp.S strrchr.S
+
+.for i in infinityl.c
+.PATH.c: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/gen
+SRCS+= ${i}
+CPPFLAGS.${i}+= -I${LIBCSRCDIR}/include
+.endfor
+# Import from string
+.for i in bcmp.S
+.PATH.S: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string
+SRCS+= ${i}
+CPPFLAGS.${i}+= -D_LIBC -I${LIBCSRCDIR}/include
+.endfor