CProxy/Makefile

17 lines
332 B
Makefile
Raw Normal View History

CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
2020-06-20 16:59:51 +08:00
CFLAGS += -g -O2 -Wall -pthread
LIBS = -static
2020-01-21 19:48:05 +08:00
OBJ := CProxy
2020-06-20 16:59:51 +08:00
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)
clean:
rm -rf *.o
rm $(OBJ)
2020-01-21 19:48:05 +08:00