19 lines
272 B
Makefile
19 lines
272 B
Makefile
|
|
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)
|