aboutsummaryrefslogtreecommitdiff
path: root/Makefile.linux
blob: 0f3d37f62f13577698e1d384afa42de17d661307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC = gcc
# Either this one
CFLAGS = -Wall -DREGEX_STANDALONE -fPIC -DREG_DEBUG -g -O0
# 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

all: libterex.so

$(BINS): $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)

clean:
	rm -f $(OBJS) $(BINS)