eopll rewrite

This commit is contained in:
2020-01-21 19:48:05 +08:00
parent 6f7a666bf3
commit 8a44d18f0e
27 changed files with 1910 additions and 2617 deletions

View File

@@ -2,16 +2,15 @@ CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -O2 -Wall -I../iniparser/src -L../iniparser
LIBS = -liniparser -static
OBJ := cproxy
LIBS = -liniparser -pthread -static
OBJ := CProxy
all: cproxy.o conf.o cproxy_request.o cproxy_help.o kill.o
all: proxy.o http.o request.o picohttpparser.o conf.o timeout.o help.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
$(STRIP) $(OBJ)
-chmod a+x $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)
clean:
rm -rf *.o
rm $(OBJ)