Initial commit
This commit is contained in:
18
src/Makefile
Normal file
18
src/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user