CProxy/Makefile

18 lines
375 B
Makefile
Raw Normal View History

CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
2019-11-22 18:57:18 +08:00
CFLAGS += -g -O2 -Wall -I../iniparser/src -L../iniparser
2019-09-02 21:27:20 +08:00
LIBS = -liniparser -static
OBJ := cproxy
all: cproxy.o conf.o cproxy_request.o cproxy_help.o kill.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
$(STRIP) $(OBJ)
-chmod a+x $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)
clean:
rm -rf *.o
rm $(OBJ)