apps/builtin/Makefile: Move the RWILDCARD function definition from apps/builtin/Makefile to nuttx/tools/Config.mk. It may have a broader usage than it does now.
This commit is contained in:
parent
904d68cd1f
commit
9e9072bd00
@ -38,33 +38,27 @@ include $(APPDIR)/Make.defs
|
|||||||
|
|
||||||
# Source and object files
|
# Source and object files
|
||||||
|
|
||||||
ASRCS =
|
ASRCS =
|
||||||
CSRCS = builtin_forindex.c builtin_list.c exec_builtin.c
|
CSRCS = builtin_forindex.c builtin_list.c exec_builtin.c
|
||||||
|
|
||||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
SRCS = $(ASRCS) $(CSRCS)
|
SRCS = $(ASRCS) $(CSRCS)
|
||||||
OBJS = $(AOBJS) $(COBJS)
|
OBJS = $(AOBJS) $(COBJS)
|
||||||
|
|
||||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
BIN = ..\libapps$(LIBEXT)
|
BIN = ..\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
BIN = ..\\libapps$(LIBEXT)
|
BIN = ..\\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
BIN = ../libapps$(LIBEXT)
|
BIN = ../libapps$(LIBEXT)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ROOTDEPPATH = --dep-path .
|
ROOTDEPPATH = --dep-path .
|
||||||
VPATH =
|
VPATH =
|
||||||
|
|
||||||
# RWILDCARD - Recursive wildcard used to get lists of files
|
|
||||||
|
|
||||||
define RWILDCARD
|
|
||||||
$(foreach d,$(wildcard $1/*),$(call RWILDCARD,$d/)$(filter $(subst *,%,$2),$d))
|
|
||||||
endef
|
|
||||||
|
|
||||||
# Registry entry lists
|
# Registry entry lists
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user