Initial commit

This commit is contained in:
2016-01-31 11:42:28 +01:00
commit 446c5b0461
15 changed files with 1670316 additions and 0 deletions

18
src/Makefile Normal file
View File

@@ -0,0 +1,18 @@
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)