2018-08-22 19:16:16 +08:00
|
|
|
CC = gcc
|
2019-01-19 16:13:58 +08:00
|
|
|
CFLAGS = -g -Wall -Werror -I../iniparser/src -L../iniparser
|
2019-01-10 23:12:51 +08:00
|
|
|
LIBS = -liniparser
|
2019-01-19 16:13:58 +08:00
|
|
|
OBJ := cproxy
|
2018-08-22 19:16:16 +08:00
|
|
|
|
2019-02-07 17:26:48 +08:00
|
|
|
all: cproxy.o conf.o cproxy_request.o cproxy_help.o
|
2019-02-16 17:28:47 +08:00
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
2019-01-19 16:13:58 +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)
|