SpecialProxy/Makefile

21 lines
332 B
Makefile
Raw Normal View History

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