diff options
author | Dmitry Mikhirev | 2014-11-22 13:14:17 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-11-22 13:46:16 +0300 |
commit | 8121caf374edc7b1bcbcddc97e8f2f61da60067f (patch) | |
tree | e524eddf7ace128466abdb30fba0cd8ce1bbf9ac /GNUmakefile | |
parent | 610f4cf6da7f79322332f11e948929f2fc12d48c (diff) | |
download | make_pcre-8121caf374edc7b1bcbcddc97e8f2f61da60067f.tar.gz make_pcre-8121caf374edc7b1bcbcddc97e8f2f61da60067f.tar.bz2 make_pcre-8121caf374edc7b1bcbcddc97e8f2f61da60067f.tar.xz make_pcre-8121caf374edc7b1bcbcddc97e8f2f61da60067f.zip |
fixed cc arguments orderv0.1
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile index f821e04..6ad40cb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -2,7 +2,8 @@ CFLAGS = -Wall -g PCRE_CONFIG = pcre-config #PCRE_CONFIG = pkg-config libpcre PCRE_CFLAGS := $(shell $(PCRE_CONFIG) --cflags) -PCRE_LDFLAGS := $(shell $(PCRE_CONFIG) --libs) +PCRE_LIBS := $(shell $(PCRE_CONFIG) --libs) +LIBS = $(PCRE_LIBS) tests = test001 test002 test003 test004 test005 test006 @@ -15,8 +16,8 @@ endif .PHONY: check clean pcre.so: pcre.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(MAKE_CFLAGS) $(PCRE_CFLAGS) -fPIC \ - $(LDFLAGS) $(PCRE_LDFLAGS) -shared -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) $(MAKE_CFLAGS) -fPIC \ + $(LDFLAGS) -shared -o $@ $< $(LIBS) check: $(tests) |