CProxy/Makefile

19 lines
418 B
Makefile
Raw Permalink Normal View History

CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
2022-07-13 11:33:56 +08:00
CFLAGS += -g -O2 -Wall -pthread
LIBS =
2020-01-21 19:48:05 +08:00
OBJ := CProxy
2022-04-23 21:55:24 +08:00
all: main.o http_proxy.o http_request.o httpdns.o httpudp.o conf.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
rm -rf *.o
rm $(OBJ)
2020-01-21 19:48:05 +08:00
android:
/usr/lib/android-ndk/ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk