From 938ffd2bd569ee365a767e2d509393a2c73e6ef0 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 4 Jan 2012 22:10:46 +0100 Subject: [PATCH] Add libc/regex to libc, fix #64 --- libports/lib/mk/libc-regex.mk | 13 +++++++++++++ libports/lib/mk/libc.mk | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 libports/lib/mk/libc-regex.mk 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 #