simdjson/examples/quickstart/Makefile

33 lines
1.3 KiB
Makefile
Raw Normal View History

2020-03-30 06:34:56 +08:00
ROOT=../..
SINGLEHEADER=$(ROOT)/singleheader
JSONEXAMPLES=$(ROOT)/jsonexamples
test: quickstart twitter.json
./quickstart
2020-04-06 03:00:43 +08:00
quickstart: quickstart.cpp simdjson.cpp simdjson.h
2020-04-09 02:06:16 +08:00
c++ -o ./quickstart quickstart.cpp simdjson.cpp
2020-04-06 03:00:43 +08:00
clean:
2020-04-09 02:06:16 +08:00
rm -f simdjson.cpp simdjson.h twitter.json quickstart quickstart11 quickstart14
2020-03-30 06:34:56 +08:00
simdjson.cpp: $(SINGLEHEADER)/simdjson.cpp
cp $(SINGLEHEADER)/simdjson.cpp .
simdjson.h: $(SINGLEHEADER)/simdjson.h
cp $(SINGLEHEADER)/simdjson.h .
twitter.json: $(JSONEXAMPLES)/twitter.json
cp $(JSONEXAMPLES)/twitter.json .
2020-04-06 03:00:43 +08:00
quickstart11: $(ROOT)/src/**.h $(ROOT)/src/**.cpp $(ROOT)/include/**.h $(ROOT)/src/**.cpp
rm -f simdjson.h simdjson.cpp
c++ -o ./quickstart11 quickstart.cpp $(ROOT)/src/simdjson.cpp -I$(ROOT)/src -I$(ROOT)/include -std=c++11
test11: quickstart11 twitter.json
./quickstart11
quickstart14: $(ROOT)/src/**.h $(ROOT)/src/**.cpp $(ROOT)/include/**.h $(ROOT)/src/**.cpp
rm -f simdjson.h simdjson.cpp
c++ -o ./quickstart14 quickstart.cpp $(ROOT)/src/simdjson.cpp -I$(ROOT)/src -I$(ROOT)/include -std=c++14
test14: quickstart14 twitter.json
./quickstart14
quickstart17: $(ROOT)/src/**.h $(ROOT)/src/**.cpp $(ROOT)/include/**.h $(ROOT)/src/**.cpp
rm -f simdjson.h simdjson.cpp
c++ -o ./quickstart17 quickstart.cpp $(ROOT)/src/simdjson.cpp -I$(ROOT)/src -I$(ROOT)/include -std=c++17
test17: quickstart17 twitter.json
./quickstart17