aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..91d3616
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,17 @@
+-load pcre.so
+
+MAKE_INCLUDE_DIR := $(HOME)/src/make-4.1
+CFLAGS += -I$(MAKE_INCLUDE_DIR)
+
+pcre.so: CFLAGS += $(shell pcre-config --cflags)
+pcre.so: LDFLAGS += $(shell pcre-config --libs)
+pcre.so: pcre.c
+ $(CC) $(CFLAGS) -fPIC $(LDFLAGS) -shared -o $@ $<
+
+ifeq ($(m ^pattern$,pattern), pattern)
+check:
+ @echo test PASSED
+else
+check:
+ @echo test FAILED
+endif