76 lines
2.3 KiB
Makefile
76 lines
2.3 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := tun2socks
|
|
|
|
LOCAL_CFLAGS := -std=gnu99
|
|
LOCAL_CFLAGS += -DBADVPN_THREAD_SAFE=0 -DBADVPN_LINUX -DBADVPN_BREACTOR_BADVPN -D_GNU_SOURCE
|
|
LOCAL_CFLAGS += -DBADVPN_USE_SELFPIPE -DBADVPN_USE_EPOLL
|
|
LOCAL_CFLAGS += -DBADVPN_LITTLE_ENDIAN
|
|
LOCAL_CFLAGS += -DPSIPHON
|
|
|
|
LOCAL_C_INCLUDES:= \
|
|
$(LOCAL_PATH) \
|
|
$(LOCAL_PATH)/lwip/src/include/ipv4 \
|
|
$(LOCAL_PATH)/lwip/src/include/ipv6 \
|
|
$(LOCAL_PATH)/lwip/src/include \
|
|
$(LOCAL_PATH)/lwip/custom
|
|
|
|
LOCAL_SRC_FILES := \
|
|
base/BLog_syslog.c \
|
|
system/BReactor_badvpn.c \
|
|
system/BSignal.c \
|
|
system/BConnection_unix.c \
|
|
system/BTime.c \
|
|
system/BUnixSignal.c \
|
|
system/BNetwork.c \
|
|
flow/StreamRecvInterface.c \
|
|
flow/PacketRecvInterface.c \
|
|
flow/PacketPassInterface.c \
|
|
flow/StreamPassInterface.c \
|
|
flow/SinglePacketBuffer.c \
|
|
flow/BufferWriter.c \
|
|
flow/PacketBuffer.c \
|
|
flow/PacketStreamSender.c \
|
|
flow/PacketPassConnector.c \
|
|
flow/PacketProtoFlow.c \
|
|
flow/PacketPassFairQueue.c \
|
|
flow/PacketProtoEncoder.c \
|
|
flow/PacketProtoDecoder.c \
|
|
socksclient/BSocksClient.c \
|
|
tuntap/BTap.c \
|
|
lwip/src/core/timers.c \
|
|
lwip/src/core/udp.c \
|
|
lwip/src/core/memp.c \
|
|
lwip/src/core/init.c \
|
|
lwip/src/core/pbuf.c \
|
|
lwip/src/core/tcp.c \
|
|
lwip/src/core/tcp_out.c \
|
|
lwip/src/core/netif.c \
|
|
lwip/src/core/def.c \
|
|
lwip/src/core/mem.c \
|
|
lwip/src/core/tcp_in.c \
|
|
lwip/src/core/stats.c \
|
|
lwip/src/core/inet_chksum.c \
|
|
lwip/src/core/ipv4/icmp.c \
|
|
lwip/src/core/ipv4/ip4.c \
|
|
lwip/src/core/ipv4/ip4_addr.c \
|
|
lwip/src/core/ipv4/ip_frag.c \
|
|
lwip/src/core/ipv6/ip6.c \
|
|
lwip/src/core/ipv6/nd6.c \
|
|
lwip/src/core/ipv6/icmp6.c \
|
|
lwip/src/core/ipv6/ip6_addr.c \
|
|
lwip/src/core/ipv6/ip6_frag.c \
|
|
lwip/custom/sys.c \
|
|
tun2socks/tun2socks.c \
|
|
base/DebugObject.c \
|
|
base/BLog.c \
|
|
base/BPending.c \
|
|
flowextra/PacketPassInactivityMonitor.c \
|
|
tun2socks/SocksUdpGwClient.c \
|
|
udpgw_client/UdpGwClient.c
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|