2019-05-09 18:25:42 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
2019-04-21 10:41:28 +08:00
|
|
|
CFLAGS += -g -Wall -I../iniparser/src -L../iniparser
|
2019-09-02 21:27:20 +08:00
|
|
|
LIBS = -liniparser -static
|
2019-01-19 16:13:58 +08:00
|
|
|
OBJ := cproxy
|
2018-08-22 19:16:16 +08:00
|
|
|
|
2019-05-09 18:25:42 +08:00
|
|
|
all: cproxy.o conf.o cproxy_request.o cproxy_help.o kill.o
|
2019-02-16 17:28:47 +08:00
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
2019-05-09 18:25:42 +08:00
|
|
|
$(STRIP) $(OBJ)
|
2019-02-07 17:26:48 +08:00
|
|
|
-chmod a+x $(OBJ)
|
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)
|