denyhosts/Makefile

22 lines
538 B
Makefile
Raw Normal View History

2019-09-24 08:53:00 +08:00
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
CFLAGS += -Os -g -Wall
2022-07-07 16:52:24 +08:00
LIB += -lcurl -lip4tc
2022-10-13 18:01:06 +08:00
IPTC_CFLAGS += -DHAVE_CONFIG_H -I./libiptc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT
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)
2022-10-13 18:01:06 +08:00
static: conf.o rhost.o libiptc.o
$(CC) $(IPTC_CFLAGS) -c libiptc/libip4tc.c -o libiptc/libip4tc.o
ar crs libiptc/libip4tc.a libiptc/libip4tc.o
$(CC) $(CFLAGS) $^ -o $(OBG) libiptc/libip4tc.o -lcurl
2019-09-24 08:53:00 +08:00
clean:
rm -rf *.o
rm $(OBG)