Add kill_all function to kill multiple processes

Support for custom profiles
This commit is contained in:
2019-05-09 18:25:42 +08:00
parent 68aada0edd
commit 577dd36b00
8 changed files with 760 additions and 16 deletions

View File

@@ -1,11 +1,13 @@
CC ?= gcc
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -Wall -I../iniparser/src -L../iniparser
LIBS = -liniparser
OBJ := cproxy
all: cproxy.o conf.o cproxy_request.o cproxy_help.o
all: cproxy.o conf.o cproxy_request.o cproxy_help.o kill.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
strip $(OBJ)
$(STRIP) $(OBJ)
-chmod a+x $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)