From 1f913a978aa1d9c1f797623c414752df15ba36ca Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Fri, 14 Nov 2014 15:17:09 +0300 Subject: initial commit --- GNUmakefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 GNUmakefile (limited to 'GNUmakefile') 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 -- cgit v1.2.1