iptogeo/src/Makefile

19 lines
272 B
Makefile
Raw Normal View History

2016-01-31 11:42:28 +01:00
SRCS = ip_to_geo.c test.c cmdline.c server.c
TARGET = ip_to_geo
CFLAGS = -Wall -lpthread -ggdb -O0
all: $(TARGET)
ip_data.c:
../data/get_prefixs.sh
cmdline.c: cmdline.ggo
gengetopt --input $^
$(TARGET): $(SRCS)
gcc $(CFLAGS) $^ -o $@
clean:
rm -f *~ $(TARGET)