🔨 cleaned up Makefiles and docs #698

This commit is contained in:
Niels Lohmann 2017-10-04 19:27:35 +02:00
parent 5cb6d7187d
commit 99ee4c1eaf
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
11 changed files with 107 additions and 4058 deletions

11
benchmarks/Makefile Normal file
View file

@ -0,0 +1,11 @@
all: json_benchmarks
./json_benchmarks
json_benchmarks: src/benchmarks.cpp ../src/json.hpp number_jsons
$(CXX) -std=c++11 -pthread $(CXXFLAGS) -DNDEBUG -O3 -flto -I thirdparty/benchpress -I thirdparty/cxxopts -I../src src/benchmarks.cpp $(LDFLAGS) -o $@
number_jsons:
(test -e files/numbers/floats.json -a -e files/numbers/signed_ints.json -a -e files/numbers/unsigned_ints.json) || (cd files/numbers ; python generate.py)
clean:
rm -f json_benchmarks files/numbers/*.json