Modify httpdns for Android, and fix the problem of negative number when get gets the length of host.
This commit is contained in:
6
Makefile
6
Makefile
@@ -5,14 +5,14 @@ CFLAGS += -g -O2 -Wall -pthread
|
||||
LIBS =
|
||||
OBJ := CProxy
|
||||
|
||||
all: main.o http_proxy.o httpdns.o http_request.o conf.o timeout.o kill.o help.o
|
||||
all: main.o http_proxy.o httpdns.o http_request.o conf.o timeout.o help.o
|
||||
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< $(LIBS)
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -rf *.o
|
||||
rm $(OBJ)
|
||||
|
||||
android:
|
||||
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk
|
||||
/usr/lib/android-ndk/ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk
|
||||
|
||||
Reference in New Issue
Block a user