aboutsummaryrefslogtreecommitdiff
path: root/Makefile.linux
blob: e1dac8fd7d6c5a2b63431f6bc098d7a2ed781d19 (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
# 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)