CProxy/Makefile

17 lines
322 B
Makefile
Raw Normal View History

CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -O2 -Wall
LIBS = -pthread -static
2020-01-21 19:48:05 +08:00
OBJ := CProxy
2020-02-13 15:33:38 +08:00
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)
2020-01-21 19:48:05 +08:00