forked from TurBoTse/padavan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 1.01 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SRC_NAME=pcre-8.45
SRC_URL=https://downloads.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.zip
all: download_test extract_test config_test
$(MAKE) -j$(HOST_NCPU) -C $(SRC_NAME)
download_test:
( if [ ! -f $(SRC_NAME).zip ]; then \
wget -t5 --timeout=20 --no-check-certificate -O $(SRC_NAME).zip $(SRC_URL); \
fi )
extract_test:
( if [ ! -d $(SRC_NAME) ]; then \
unzip -qq $(SRC_NAME).zip ; \
fi )
config_test:
( if [ -f ./config_done ]; then \
echo "the same configuration"; \
else \
make configure && touch config_done; \
fi )
configure:
( cd $(SRC_NAME) ; \
./configure \
--prefix=$(STAGEDIR) \
--enable-utf8 \
--enable-unicode-properties \
--enable-pcre16 \
--disable-cpp \
--with-match-limit-recursion=16000 \
--host=$(HOST_TARGET) \
--build=$(HOST_BUILD) ; \
)
clean:
if [ -f $(SRC_NAME)/Makefile ] ; then \
$(MAKE) -C $(SRC_NAME) distclean ; \
fi ; \
rm -f config_done
install:
$(MAKE) -C $(SRC_NAME) install DESTDIR=""
romfs:
cp -fP $(DESTDIR)/lib/libpcre.so* $(ROMFSDIR)/lib