-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
24 lines (19 loc) · 811 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY : build pcre pcre2
default :
@echo "======================================="
@echo "Please use 'make build' command to build it.."
@echo "Please use 'make pcre' command to build it.."
@echo "Please use 'make pcre2' command to build it.."
@echo "======================================="
INCLUDES += -I../ -I../../ -I../../../ -I../../src -I/usr/local/include
LIBS = -L../ -L../../ -L../../../ -L/usr/local/lib
CFLAGS = -Wall -O3 -fPIC --shared -Wl,-rpath,. -Wl,-rpath,.. -Wl,-rpath,/usr/local/lib
pcre:
@$(CC) -o lre.so lre.c $(CFLAGS) $(INCLUDES) $(LIBS) -lcore -lpcreposix
@cp lre.so re.lua ../
pcre2:
@$(CC) -o lre.so lre.c $(CFLAGS) $(INCLUDES) $(LIBS) -lcore -lpcre2-posix
@cp lre.so re.lua ../
build:
@$(CC) -o lre.so lre.c $(CFLAGS) $(INCLUDES) $(LIBS) -lcore
@cp lre.so re.lua ../