diff options
author | bustico | 2004-09-07 13:40:32 +0000 |
---|---|---|
committer | bustico | 2004-09-07 13:40:32 +0000 |
commit | d4565b84b2ab68161269cc725c390bb2fb20d8fb (patch) | |
tree | e2721182270e894f28ba9f77c310b75344624e6d /src/Makefile | |
parent | a713fb80ed3ef52d2596239870ec5fcccf8d45c3 (diff) | |
download | ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.zip ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.tar.gz ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.tar.bz2 ivy-c-d4565b84b2ab68161269cc725c390bb2fb20d8fb.tar.xz |
permit case sensisite/insensitive choice for pcre and gnu regexp at Makefile
level
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index cc698c9..c1f3d17 100644 --- a/src/Makefile +++ b/src/Makefile @@ -42,6 +42,15 @@ TCLLIB = -ltcl$(TCLVERS) #TCLLIB = -framework Tcl PCREINC = `pcre-config --cflags` PCRELIB = `pcre-config --libs` +CASESENSITIVE = "yes" +ifeq ($(CASESENSITIVE), "no") + PCRE_OPT=PCRE_CASELESS + REGCOMP_OPT=REG_ICASE +else + PCRE_OPT=0 + REGCOMP_OPT=REG_EXTENDED +endif + #PCREOBJ = `pcre-config --prefix`/lib/libpcre.a PCREOBJ = @@ -52,8 +61,8 @@ CC=gcc LIBTOOL=ar q # linux and solaris #LIBTOOL=libtool -static -o -#REGEXP = -DGNU_REGEXP # deprecated ! -REGEXP = -DUSE_PCRE_REGEX +#REGEXP = -DGNU_REGEXP -DREGCOMP_OPT=$(REGCOMP_OPT) # deprecated ! +REGEXP= -DUSE_PCRE_REGEX -DPCRE_OPT=$(PCRE_OPT) # on activeTCL , set #define CHANNEL to null, and add ivyloop.o in the ivytcl target, # see below CHANNEL = -DTCL_CHANNEL_INTEGRATION @@ -90,7 +99,7 @@ ivy.o: ivy.c $(CC) -c $(CFLAGS) $(REGEXP) $(PCREINC) ivy.c givy.o: ivy.c - $(CC) -c $(CFLAGS) -o givy.o ivy.c + $(CC) -c $(CFLAGS) -DGNU_REGEXP -DREGCOMP_OPT=$(REGCOMP_OPT) -o givy.o ivy.c ivyglutloop.o: ivyglutloop.c ivyglutloop.h $(CC) -c $(CFLAGS) $(GLUTINC) ivyglutloop.c |