aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-26 23:14:44 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-26 23:14:44 +0200
commiteb1fcdf5d1058f4fbdf3a2661573dd7e4d3976f3 (patch)
treecdb7caf92fd29cb3d2ab3d28f2cd5c9604c0d1c4 /Makefile
parent16cf84d794bfe9fdb245d38760256286384d8380 (diff)
downloadterex-eb1fcdf5d1058f4fbdf3a2661573dd7e4d3976f3.tar.gz
allow raw (ASCII) matching via REG_RAW flag, so we no longer need a compile-time flag
You no longer need to build two libraries just for supporting raw/ASCII and UTF-8 patterns. This makes using the library a lot easier and reduces the total binary size. Since strings are always `unsigned char *` now internally and the raw vs. UTF-8 decision is important only in a few select places, it would make no sense to use meta-programming techniques. The test suite has been extended and is now fixed for cases with embedded non-printable characters.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 0 insertions, 17 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index c7437fe..0000000
--- a/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-CC = gcc
-# Either this one
-CFLAGS = -Wall -DREGEX_STANDALONE -fPIC -DREG_DEBUG -g
-# Or this one
-#CFLAGS = -Wall -DREGEX_STANDALONE -fPIC -D_NDEBUG -O3
-LDFLAGS = -shared
-SRCS = regcomp.c regexec.c regerror.c regfree.c
-OBJS = $(SRCS:.c=.o)
-BINS = libterex.so libteurex.so
-all:
- make libterex.so
- rm -f $(OBJS)
- make "CFLAGS=$(CFLAGS) -DREGEX_UTF8" libteurex.so
-$(BINS): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS)
-clean:
- rm -f $(OBJS) $(BINS)