2022-04-04 20:00:36 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
|
|
CFLAGS := -O2 -g -Wall -pthread
|
2017-07-12 12:29:56 +08:00
|
|
|
OBJ := SpecialProxy
|
2018-11-28 12:14:35 +08:00
|
|
|
|
2017-07-12 12:29:56 +08:00
|
|
|
|
2018-12-07 09:29:41 +08:00
|
|
|
all : main.o http.o dns.o timeout.o
|
2017-07-12 12:29:56 +08:00
|
|
|
$(CC) $(CFLAGS) $(DEFS) -o $(OBJ) $^
|
2022-04-04 20:00:36 +08:00
|
|
|
: $(STRIP) $(OBJ)
|
|
|
|
-chmod 755 $(OBJ) 2>&-
|
2017-07-12 12:29:56 +08:00
|
|
|
|
|
|
|
.c.o :
|
|
|
|
$(CC) $(CFLAGS) $(DEFS) -c $<
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f *.o
|
2022-04-04 20:00:36 +08:00
|
|
|
rm $(OBJ)
|
|
|
|
|