diff options
Diffstat (limited to 'nuttx/lib/Makefile')
-rw-r--r-- | nuttx/lib/Makefile | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/nuttx/lib/Makefile b/nuttx/lib/Makefile index b72415b6e..94dfe888c 100644 --- a/nuttx/lib/Makefile +++ b/nuttx/lib/Makefile @@ -35,7 +35,10 @@ -include $(TOPDIR)/Make.defs include stdio/Make.defs +include stdlib/Make.defs include string/Make.defs +include time/Make.defs +include queue/Make.defs ASRCS = AOBJS = $(ASRCS:.S=$(OBJEXT)) @@ -47,8 +50,6 @@ endif CTYPE_SRCS = -STDLIB_SRCS = lib_abs.c lib_imaxabs.c lib_labs.c lib_llabs.c lib_rand.c lib_qsort.c - MATH_SRCS = lib_rint.c lib_fixedmath.c lib_b16sin.c lib_b16cos.c UNISTD_SRCS = lib_getopt.c lib_getoptargp.c lib_getoptindp.c lib_getoptoptp.c @@ -58,9 +59,6 @@ UNISTD_SRCS += lib_chdir.c lib_getcwd.c endif endif -TIME_SRCS = lib_mktime.c lib_gmtime.c lib_gmtimer.c lib_strftime.c \ - lib_calendar2utc.c lib_daysbeforemonth.c lib_isleapyear.c - NET_SRCS = lib_htons.c lib_htonl.c lib_inetntoa.c lib_etherntoa.c LIBGEN_SRCS = lib_basename.c lib_dirname.c @@ -69,17 +67,11 @@ REGEX_SRCS = lib_match.c CRC_SRCS = lib_crc32.c -SQ_SRCS = sq_addlast.c sq_addfirst.c sq_addafter.c \ - sq_rem.c sq_remlast.c sq_remfirst.c sq_remafter.c - -DQ_SRCS = dq_addlast.c dq_addfirst.c dq_addafter.c dq_addbefore.c \ - dq_rem.c dq_remlast.c dq_remfirst.c - DBG_SRCS = lib_dbg.c lib_dumpbuffer.c -CSRCS = $(MISC_SRCS) $(STRING_SRCS) $(CTYPE_SRCS) $(STDIO_SRCS) $(STDLIB_SRCS) \ - $(MATH_SRCS) $(UNISTD_SRCS) $(TIME_SRCS) $(NET_SRCS) $(LIBGEN_SRCS) \ - $(REGEX_SRCS) $(CRC_SRCS) $(SQ_SRCS) $(DQ_SRCS) $(DBG_SRCS) +CSRCS = $(MISC_SRCS) $(CTYPE_SRCS) $(STDIO_SRCS) $(STDLIB_SRCS) $(STRING_SRCS) \ + $(TIME_SRCS) $(MATH_SRCS) $(UNISTD_SRCS) $(NET_SRCS) $(LIBGEN_SRCS) \ + $(REGEX_SRCS) $(CRC_SRCS) $(QUEUE_SRCS) $(DBG_SRCS) COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) @@ -87,8 +79,11 @@ OBJS = $(AOBJS) $(COBJS) ROOTDEPPATH = --dep-path . STDIODEPPATH = --dep-path stdio +STDLIBDEPPATH = --dep-path stdlib STRINGDEPPATH = --dep-path string -VPATH = stdio:string +TIMEDEPPATH = --dep-path time +QUEUEDEPPATH = --dep-path queue +VPATH = stdio:stdlib:string:time:queue BIN = liblib$(LIBEXT) @@ -106,7 +101,8 @@ $(BIN): $(OBJS) done ; ) .depend: Makefile $(SRCS) - @$(MKDEP) $(ROOTDEPPATH) $(STRINGDEPPATH) $(STDIODEPPATH) \ + @$(MKDEP) $(ROOTDEPPATH) $(STDIODEPPATH) $(STDLIBDEPPATH) \ + $(STRINGDEPPATH) $(TIMEDEPPATH) $(QUEUEDEPPATH) \ $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep @touch $@ |