summaryrefslogtreecommitdiff
path: root/nuttx/lib/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-30 22:17:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-30 22:17:36 +0000
commit6ef8a415c60e121db19d52273a35f0d1a045238c (patch)
treef02e09d7a9d8f0f356eb7cd2c2cf0e8e983379b3 /nuttx/lib/Makefile
parente23b97f4e2c93d6258860c63a9feec54e43c4dc0 (diff)
downloadpx4-nuttx-6ef8a415c60e121db19d52273a35f0d1a045238c.tar.gz
px4-nuttx-6ef8a415c60e121db19d52273a35f0d1a045238c.tar.bz2
px4-nuttx-6ef8a415c60e121db19d52273a35f0d1a045238c.zip
Move more files into subdirectories under lib/
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3443 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/Makefile')
-rw-r--r--nuttx/lib/Makefile27
1 files changed, 9 insertions, 18 deletions
diff --git a/nuttx/lib/Makefile b/nuttx/lib/Makefile
index e33e9ddde..76bd1b74b 100644
--- a/nuttx/lib/Makefile
+++ b/nuttx/lib/Makefile
@@ -41,27 +41,16 @@ include string/Make.defs
include math/Make.defs
include net/Make.defs
include time/Make.defs
+include libgen/Make.defs
include queue/Make.defs
+include misc/Make.defs
ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT))
-MISC_SRCS = lib_init.c lib_filesem.c
-ifneq ($(CONFIG_NFILE_STREAMS),0)
-MISC_SRCS += lib_streamsem.c
-endif
-
-LIBGEN_SRCS = lib_basename.c lib_dirname.c
-
-REGEX_SRCS = lib_match.c
-
-CRC_SRCS = lib_crc32.c
-
-DBG_SRCS = lib_dbg.c lib_dumpbuffer.c
-
-CSRCS = $(MISC_SRCS) $(CTYPE_SRCS) $(STDIO_SRCS) $(STDLIB_SRCS) $(UNISTD_SRCS) \
- $(STRING_SRCS) $(MATH_SRCS) $(NET_SRCS) $(TIME_SRCS) $(LIBGEN_SRCS) \
- $(REGEX_SRCS) $(CRC_SRCS) $(QUEUE_SRCS) $(DBG_SRCS)
+CSRCS = $(STDIO_SRCS) $(STDLIB_SRCS) $(UNISTD_SRCS) $(STRING_SRCS) \
+ $(MATH_SRCS) $(NET_SRCS) $(TIME_SRCS) $(LIBGEN_SRCS) \
+ $(QUEUE_SRCS) $(MISC_SRCS) $(REGEX_SRCS) $(CRC_SRCS) $(DBG_SRCS)
COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
@@ -75,8 +64,10 @@ STRINGDEPPATH = --dep-path string
MATHDEPPATH = --dep-path math
NETDEPPATH = --dep-path net
TIMEDEPPATH = --dep-path time
+LIBGENDEPPATH = --dep-path libgen
QUEUEDEPPATH = --dep-path queue
-VPATH = stdio:stdlib:unistd:string:math:net:time:queue
+MISCDEPPATH = --dep-path misc
+VPATH = stdio:stdlib:unistd:string:math:net:time:libgen:queue:misc
BIN = liblib$(LIBEXT)
@@ -96,7 +87,7 @@ $(BIN): $(OBJS)
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) $(STDIODEPPATH) $(STDLIBDEPPATH) \
$(UNISTDDEPPATH) $(STRINGDEPPATH) $(MATHDEPPATH) $(NETDEPPATH) \
- $(TIMEDEPPATH) $(QUEUEDEPPATH) \
+ $(TIMEDEPPATH) $(LIBGENDEPPATH) $(QUEUEDEPPATH) $(MISCDEPPATH) \
$(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
@touch $@