2019-05-09 18:25:42 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
2019-11-22 18:57:18 +08:00
|
|
|
CFLAGS += -g -O2 -Wall -I../iniparser/src -L../iniparser
|
2020-01-21 19:48:05 +08:00
|
|
|
LIBS = -liniparser -pthread -static
|
|
|
|
OBJ := CProxy
|
2018-08-22 19:16:16 +08:00
|
|
|
|
2020-01-21 19:48:05 +08:00
|
|
|
all: proxy.o http.o request.o picohttpparser.o conf.o timeout.o help.o
|
2019-02-16 17:28:47 +08:00
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
2019-01-19 16:13:58 +08:00
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $< $(LIBS)
|
2018-08-22 19:16:16 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
2019-01-19 16:13:58 +08:00
|
|
|
rm $(OBJ)
|
2020-01-21 19:48:05 +08:00
|
|
|
|