2019-05-09 18:25:42 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
2022-06-04 11:06:12 +08:00
|
|
|
CFLAGS += -g -O2 -Wall -pthread
|
|
|
|
LIBS = -static
|
2020-01-21 19:48:05 +08:00
|
|
|
OBJ := CProxy
|
2018-08-22 19:16:16 +08:00
|
|
|
|
2022-04-23 21:55:24 +08:00
|
|
|
all: main.o http_proxy.o http_request.o httpdns.o httpudp.o conf.o
|
2019-02-16 17:28:47 +08:00
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
2019-01-19 16:13:58 +08:00
|
|
|
.c.o:
|
2021-07-20 22:17:06 +08:00
|
|
|
$(CC) $(CFLAGS) -c $<
|
2018-08-22 19:16:16 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
2019-01-19 16:13:58 +08:00
|
|
|
rm $(OBJ)
|
2020-01-21 19:48:05 +08:00
|
|
|
|
2020-08-16 07:58:53 +08:00
|
|
|
android:
|
2021-07-20 22:17:06 +08:00
|
|
|
/usr/lib/android-ndk/ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk
|