diff options
author | Dmitry Mikhirev | 2014-11-14 15:17:09 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-11-14 15:17:09 +0300 |
commit | 1f913a978aa1d9c1f797623c414752df15ba36ca (patch) | |
tree | 2f20da2eb987823d6d8b3c1dbb2c3af5dd6aa43a /GNUmakefile | |
download | make_pcre-1f913a978aa1d9c1f797623c414752df15ba36ca.tar.gz make_pcre-1f913a978aa1d9c1f797623c414752df15ba36ca.tar.bz2 make_pcre-1f913a978aa1d9c1f797623c414752df15ba36ca.tar.xz make_pcre-1f913a978aa1d9c1f797623c414752df15ba36ca.zip |
initial commit
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 17 |
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 |