diff --git a/libports/lib/mk/libc-regex.mk b/libports/lib/mk/libc-regex.mk new file mode 100644 index 0000000000..e6de688a08 --- /dev/null +++ b/libports/lib/mk/libc-regex.mk @@ -0,0 +1,13 @@ +LIBC_REGEX_DIR = $(LIBC_DIR)/libc/regex + +# +# 'engine.c' is meant to be included by other compilation units. It cannot +# be compiled individually. +# +FILTER_OUT = engine.c + +SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(LIBC_REGEX_DIR)/*.c))) + +include $(REP_DIR)/lib/mk/libc-common.inc + +vpath %.c $(LIBC_REGEX_DIR) diff --git a/libports/lib/mk/libc.mk b/libports/lib/mk/libc.mk index 8e25a806ff..339e19c81a 100644 --- a/libports/lib/mk/libc.mk +++ b/libports/lib/mk/libc.mk @@ -3,7 +3,7 @@ # LIBS = libc-string libc-locale libc-stdlib libc-stdio libc-gen libc-gdtoa \ - libc-inet libc-stdtime + libc-inet libc-stdtime libc-regex LIBS += timed_semaphore cxx #