mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
28 lines
491 B
Makefile
28 lines
491 B
Makefile
|
|
all: bin header search bench make edit
|
|
|
|
FILES=$(wildcard src/*.cc)
|
|
|
|
bin:
|
|
mkdir -p bin
|
|
|
|
header: $(FILES) test/header.cc
|
|
g++ -std=c++11 -O2 $^ -o bin/$@
|
|
|
|
search: $(FILES) test/search.cc
|
|
g++ -std=c++11 -O2 $^ -o bin/$@
|
|
|
|
bench: $(FILES) test/bench.cc
|
|
g++ -std=c++11 -O2 $^ -o bin/$@
|
|
|
|
make: $(FILES) test/make.cc
|
|
g++ -std=c++11 -O2 $^ -o bin/$@
|
|
|
|
edit: $(FILES)
|
|
g++ -std=c++11 -O2 $^ test/edit_v4.cc -o bin/edit_v4
|
|
g++ -std=c++11 -O2 $^ test/edit_v6.cc -o bin/edit_v6
|
|
|
|
clean:
|
|
rm -rf bin
|
|
|