Use multithreading instead

This commit is contained in:
2020-06-20 16:59:51 +08:00
parent ac28689fac
commit a1c87d2bee
8 changed files with 602 additions and 37 deletions

View File

@@ -1,11 +1,11 @@
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -O2 -Wall
LIBS = -pthread -static
CFLAGS += -g -O2 -Wall -pthread
LIBS = -static
OBJ := CProxy
all: proxy.o http.o request.o picohttpparser.o conf.o timeout.o kill.o help.o
all: proxy.o http.o httpdns.o request.o picohttpparser.o conf.o timeout.o kill.o help.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)