diff options
| author | Gary Houston <ghouston@arglist.com> | 2014-12-26 16:19:46 +1100 |
|---|---|---|
| committer | Gary Houston <ghouston@arglist.com> | 2014-12-26 16:19:46 +1100 |
| commit | 888eaffd36ff841a0b7c562de67e498336270ce7 (patch) | |
| tree | 7b2cf393432901589639485daf7af456ef7dc3f1 /Makefile | |
| download | terex-888eaffd36ff841a0b7c562de67e498336270ce7.tar.gz | |
import
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..384a3dd --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CC = gcc +# Either this one +#CFLAGS = -DREGEX_STANDALONE -fPIC -DREG_DEBUG -g +# Or this one +CFLAGS = -DREGEX_STANDALONE -fPIC -D_NDEBUG -O3 +LDFLAGS = -shared +SRCS = regcomp.c regexec.c regerror.c regfree.c regalone.c +OBJS = $(SRCS:.c=.o) +BINS = libhsrex.so libhswrex.so +all: + make libhsrex.so + rm -f $(OBJS) + make "CFLAGS=$(CFLAGS) -DREGEX_WCHAR" libhswrex.so +$(BINS): $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) +clean: + rm -f $(OBJS) $(BINS) |
