-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
26 lines (19 loc) · 919 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
25
26
_THEOS_PLATFORM_DPKG_DEB = /usr/local/opt/dpkg/libexec/bin/dpkg-deb
# ^ see https://github.com/theos/theos/issues/188
TARGET := iphone:12.2:7.0
THEOS_DEVICE_IP ?= 127.0.0.1
ifeq ($(THEOS_DEVICE_IP), 127.0.0.1)
THEOS_DEVICE_PORT ?= 2222
endif
include $(THEOS)/makefiles/common.mk
TOOL_NAME = privoxy
privoxy_CFLAGS = -I. -Isrc -Isrc/pcre -Wno-builtin-memcpy-chk-size -Wno-format -Wno-error=\#warnings
privoxy_FILES = $(wildcard src/[a-v]*.c) src/pcre/pcre.c src/pcre/pcreposix.c src/pcre/study.c
include $(THEOS_MAKE_PATH)/tool.mk
before-privoxy-all::
clang -Isrc -o dftables src/pcre/dftables.c
./dftables > chartables.c
before-privoxy-stage::
mkdir -p $(THEOS_STAGING_DIR)/etc/privoxy
grep -v '^#MASTER#' src/default.action.master > $(THEOS_STAGING_DIR)/etc/privoxy/default.action
cp -r src/{config,default.filter,match-all.action,trust,user.action,user.filter,templates} $(THEOS_STAGING_DIR)/etc/privoxy