20 lines
319 B
Makefile
Executable File
20 lines
319 B
Makefile
Executable File
CROSS_COMPILE ?=
|
|
CC := $(CROSS_COMPILE)gcc
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
CFLAGS := -O2 -g -Wall -pthread
|
|
OBJ := SpecialProxy
|
|
|
|
|
|
all : main.o http.o dns.o timeout.o
|
|
$(CC) $(CFLAGS) $(DEFS) -o $(OBJ) $^
|
|
: $(STRIP) $(OBJ)
|
|
-chmod 755 $(OBJ) 2>&-
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) $(DEFS) -c $<
|
|
|
|
clean :
|
|
rm -f *.o
|
|
rm $(OBJ)
|
|
|