quatalog-scraper/bin/Makefile

21 lines
508 B
Makefile
Raw Normal View History

2023-02-05 01:07:03 +00:00
CXX = clang++
2023-02-06 22:09:35 +00:00
CXXFLAGS = -O2 -march=native -Wall -std=c++17 -I../3rdparty/jsoncpp/dist/
2024-02-29 21:43:06 +00:00
vpath %.cpp ../courseinfo_scraper
2023-02-05 01:07:03 +00:00
2023-02-10 02:35:47 +00:00
.PHONY: all
all: CourseOfferingsScraper GenerateHtml
CourseOfferingsScraper: CourseOfferingsScraper.cpp json.o
2023-02-05 01:07:03 +00:00
2023-02-10 02:35:47 +00:00
GenerateHtml: GenerateHtml.cpp json.o
2023-02-06 21:37:06 +00:00
json.o: ../3rdparty/jsoncpp/dist/jsoncpp.cpp
2023-02-07 13:13:24 +00:00
$(CXX) -c $(CXXFLAGS) $? -o $@
2023-02-05 01:07:03 +00:00
2023-02-06 21:37:06 +00:00
../3rdparty/jsoncpp/dist/jsoncpp.cpp:
2023-02-05 01:07:03 +00:00
git submodule update --init
2023-02-06 21:43:59 +00:00
cd ../3rdparty/jsoncpp; ./amalgamate.py
%.o: %.cpp %.hpp
$(CXX) $(CXXFLAGS) $? -o $@