]> Zhao Yanbai Git Server - minix.git/commitdiff
libminc-related updates
authorDavid van Moolenbroek <david@minix3.org>
Thu, 8 Mar 2012 23:49:46 +0000 (00:49 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 12 Mar 2012 22:16:45 +0000 (23:16 +0100)
- add files needed for acpi, ahci, fbd, vfs to libminc
- remove "-lc" from their respective makefiles
- remove setenv from libminc (requires initialization)

drivers/acpi/Makefile
drivers/ahci/Makefile
drivers/fbd/Makefile
lib/libminc/Makefile
servers/vfs/Makefile

index 9f8a7e4317b10e7d81c4c6d0541d8031d2590dab..912265e34a012a53e721b10c3aeda16f065683dd 100644 (file)
@@ -134,7 +134,7 @@ ACPICA_SRCS= \
 SRCS+=${ACPICA_SRCS} 
 
 DPADD+=        ${LIBSYS}
-LDADD+=        -lsys -lc
+LDADD+=        -lsys
 
 CPPFLAGS += -I${.CURDIR}/include
 CFLAGS += -DACPI_LIBRARY
index d3d9cd8677d41eed077326c1cc087e5a1f64a4f4..058962dd78076bdfe38ba52a4380be24cc835b76 100644 (file)
@@ -5,8 +5,6 @@ SRCS=   ahci.c
 DPADD+=        ${LIBBLOCKDRIVER} ${LIBSYS} ${LIBTIMERS} ${LIBMTHREAD}
 LDADD+=        -lblockdriver -lsys -ltimers -lmthread
 
-LDADD+=        -lc
-
 MAN=
 
 BINDIR?= /sbin
index bd8715cfb2a2236010ba9311dd32ba7391016b72..a4bfcc3205fb8741dccb2a764cf03d3a9e372fa4 100644 (file)
@@ -6,7 +6,7 @@ PROG=   fbd
 SRCS=  fbd.c rule.c action.c
 
 DPADD+=        ${LIBBLOCKDRIVER} ${LIBSYS}
-LDADD+=        -lblockdriver -lsys -lc
+LDADD+=        -lblockdriver -lsys
 CPPFLAGS+=     -DDEBUG=0
 
 # The FBD driver requires NetBSD libc.
index c4d26001eccc49a26378e42825421583c68e2067..2f2cf43fe1475bfbecbffd0959117375d23eb42c 100644 (file)
@@ -59,14 +59,15 @@ CPPFLAGS.fputs.c+= -I${LIBCSRCDIR}/include
 #
 
 # Import from stdio
-.for i in sprintf.c fprintf.c perror.c vsnprintf.c snprintf.c
+.for i in sprintf.c fprintf.c perror.c vsnprintf.c snprintf.c \
+       _rand48.c lrand48.c srand48.c
 .PATH.c: ${LIBCSRCDIR}/stdio
 CPPFLAGS.${i}= -I${LIBCSRCDIR}/stdio -I${LIBCSRCDIR}/include
 SRCS+= ${i}
 .endfor
 # Import from stdlib
 .for i in abort.c atexit.c atoi.c exit.c getenv.c \
-       getopt.c ldiv.c setenv.c
+       getopt.c ldiv.c
 .PATH.c: ${LIBCSRCDIR}/stdlib
 SRCS+= ${i}
 CPPFLAGS.${i}+= -I${LIBCSRCDIR}/stdlib -I${LIBCSRCDIR}/include 
@@ -79,7 +80,7 @@ errlist.c: ${LIBCSRCDIR}/gen/errlist.awk \
 
 .for i in assert.c _errno.c errno.c _env.c errlist.c \
        execle.c getprogname.c sleep.c time.c \
-       ctype_.c isctype.c tolower_.c toupper_.c \
+       ctype_.c isctype.c tolower_.c toupper_.c usleep.c \
        infinityf_ieee754.c infinity_ieee754.c \
        fpclassifyf_ieee754.c fpclassifyd_ieee754.c \
        isinff_ieee754.c isinfd_ieee754.c \
@@ -126,10 +127,10 @@ CPPFLAGS.${i}+= -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/locale
 # Import from sys-minix
 .for i in access.c brk.c close.c environ.c execve.c fork.c \
        getgid.c getpid.c getuid.c gettimeofday.c loadname.c \
-       link.c mknod.c mmap.c nanosleep.c open.c read.c sbrk.c \
-       select.c setuid.c stat.c stime.c syscall.c umask.c \
-       unlink.c waitpid.c \
-       brksize.S _ipc.S _senda.S
+       link.c _mcontext.c mknod.c mmap.c nanosleep.c open.c \
+       read.c sbrk.c select.c setuid.c sigprocmask.c stat.c \
+       stime.c syscall.c _ucontext.c umask.c unlink.c waitpid.c \
+       brksize.S _ipc.S _senda.S ucontext.S
 .PATH.c: ${LIBCSRCDIR}/sys-minix
 .PATH.S: ${LIBCSRCDIR}/arch/${MACHINE}/sys-minix
 SRCS+= ${i}
index e94608c5c9a41cef30c2a355e1360f46d84825d9..1abbfb7b105bb4ce65dd6873b33d9f0d23f590c1 100644 (file)
@@ -17,8 +17,6 @@ CPPFLAGS+= -DUSE_COVERAGE
 DPADD+=        ${LIBSYS} ${LIBTIMERS} ${LIBEXEC}
 LDADD+=        -lsys -ltimers -lexec -lmthread
 
-LDADD+=        -lc
-
 MAN=
 
 BINDIR?= /usr/sbin