2023-02-05 01:07:03 +00:00
|
|
|
CXX = clang++
|
2023-02-05 03:16:23 +00:00
|
|
|
CXXFLAGS = -O2 -march=native -Wall -std=c++17
|
2023-02-05 01:07:03 +00:00
|
|
|
|
2023-02-05 03:16:23 +00:00
|
|
|
CourseOfferingsScraper: CourseOfferingsScraper.cpp json.o
|
2023-02-05 01:07:03 +00:00
|
|
|
|
2023-02-05 03:16:23 +00:00
|
|
|
json.o: 3rdparty/jsoncpp/dist/jsoncpp.cpp
|
|
|
|
$(CXX) -c $(CXXFLAGS) $? -o $@
|
2023-02-05 01:07:03 +00:00
|
|
|
|
2023-02-05 03:16:23 +00:00
|
|
|
3rdparty/jsoncpp/dist/jsoncpp.cpp:
|
2023-02-05 01:07:03 +00:00
|
|
|
git submodule update --init
|
|
|
|
cd 3rdparty/jsoncpp; ./amalgamate.py
|
2023-02-05 03:16:23 +00:00
|
|
|
|
|
|
|
%.o: %.cpp %.hpp
|
|
|
|
$(CXX) $(CXXFLAGS) $? -o $@
|