mirror of
https://github.com/quatalog/quatalog.git
synced 2024-11-08 16:14:24 +00:00
Makefile: update to use jsoncpp object for faster compilation
This commit is contained in:
parent
e01121a9af
commit
67c2d76ed9
|
@ -4,7 +4,7 @@
|
|||
#include<iostream>
|
||||
#include<filesystem>
|
||||
#include<unordered_set>
|
||||
#include<dist/jsoncpp.cpp>
|
||||
#include<json/json.h>
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
struct quatalog_data_t {
|
||||
|
|
13
Makefile
13
Makefile
|
@ -1,11 +1,14 @@
|
|||
CXX = clang++
|
||||
CXXFLAGS = -O2 -march=native -I 3rdparty/jsoncpp -Wall -std=c++17
|
||||
CXXFLAGS = -O2 -march=native -Wall -std=c++17
|
||||
|
||||
CourseOfferingsScraper: CourseOfferingsScraper.cpp
|
||||
CourseOfferingsScraper: CourseOfferingsScraper.cpp json.o
|
||||
|
||||
%.o: %.cpp %.hpp
|
||||
$(CXX) $(CXXFLAGS) -o $@
|
||||
json.o: 3rdparty/jsoncpp/dist/jsoncpp.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $? -o $@
|
||||
|
||||
jsoncpp/3rdparty/dist:
|
||||
3rdparty/jsoncpp/dist/jsoncpp.cpp:
|
||||
git submodule update --init
|
||||
cd 3rdparty/jsoncpp; ./amalgamate.py
|
||||
|
||||
%.o: %.cpp %.hpp
|
||||
$(CXX) $(CXXFLAGS) $? -o $@
|
||||
|
|
Loading…
Reference in a new issue