2019-09-24 08:53:00 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
2022-08-09 15:25:06 +08:00
|
|
|
CFLAGS += -O2 -g -Wall
|
2022-07-07 16:52:24 +08:00
|
|
|
LIB += -lcurl -lip4tc
|
2019-09-24 08:53:00 +08:00
|
|
|
OBG = rhost
|
|
|
|
|
2022-07-07 16:52:24 +08:00
|
|
|
all: conf.o rhost.o libiptc.o
|
2022-06-26 19:49:00 +08:00
|
|
|
$(CC) $(CFLAGS) $^ -o $(OBG) $(LIB)
|
2022-08-09 15:25:06 +08:00
|
|
|
chmod +x $(OBG)
|
2019-09-24 08:53:00 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
|
|
|
rm $(OBG)
|