aixiao
e6072984a2
Add long option Add Android NDK compilation No longer use the iniparser to read configuration files
17 lines
322 B
Makefile
17 lines
322 B
Makefile
CROSS_COMPILE ?=
|
|
CC := $(CROSS_COMPILE)gcc
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
CFLAGS += -g -O2 -Wall
|
|
LIBS = -pthread -static
|
|
OBJ := CProxy
|
|
|
|
all: proxy.o http.o request.o picohttpparser.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)
|
|
|