2017-07-12 12:29:56 +08:00
|
|
|
OBJ := SpecialProxy
|
|
|
|
CC := gcc
|
2018-11-28 12:14:35 +08:00
|
|
|
CFLAGS := -O2 -Wall -pthread
|
2019-01-26 11:53:32 +08:00
|
|
|
STRIP := strip
|
2018-11-28 12:14:35 +08:00
|
|
|
#如果是安卓编译
|
|
|
|
ifeq ($(ANDROID_DATA),/data)
|
|
|
|
CFLAGS := -O2 -pie -Wall
|
|
|
|
SHELL = /system/bin/sh
|
|
|
|
endif
|
|
|
|
|
2017-07-12 12:29:56 +08:00
|
|
|
|
2018-12-07 09:29:41 +08:00
|
|
|
all : main.o http.o dns.o timeout.o
|
2017-07-12 12:29:56 +08:00
|
|
|
$(CC) $(CFLAGS) $(DEFS) -o $(OBJ) $^
|
2019-01-26 11:53:32 +08:00
|
|
|
$(STRIP) $(OBJ)
|
2017-07-12 12:29:56 +08:00
|
|
|
-chmod 777 $(OBJ) 2>&-
|
|
|
|
|
|
|
|
.c.o :
|
|
|
|
$(CC) $(CFLAGS) $(DEFS) -c $<
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f *.o
|