17 lines
402 B
Makefile
17 lines
402 B
Makefile
CROSS_COMPILE ?=
|
|
CC := $(CROSS_COMPILE)gcc
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
CFLAGS += -g -Os -Wall -Iip2region -Iqqwry
|
|
LIBS = -lm -static
|
|
BIN := denyip
|
|
|
|
all: main.o ip2region/ip2region.o ip2region/xdb_searcher.o qqwry/qqwry.o
|
|
$(CC) $(CFLAGS) -o $(BIN) $^ $(LIBS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -rf $(BIN)
|
|
rm -rf main.o ip2region/ip2region.o ip2region/xdb_searcher.o qqwry/qqwry.o
|