CProxy/Makefile

19 lines
419 B
Makefile
Raw Normal View History

CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
2021-05-18 14:18:56 +08:00
CFLAGS += -g -O2 -Wall -pthread
2020-07-30 18:10:31 +08:00
LIBS =
2020-01-21 19:48:05 +08:00
OBJ := CProxy
2020-07-30 18:10:31 +08:00
all: main.o http_proxy.o httpdns.o http_request.o conf.o timeout.o kill.o help.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)
clean:
rm -rf *.o
rm $(OBJ)
2020-01-21 19:48:05 +08:00
android:
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk