CXXFLAGS = -Wall -std=c++23 -O3 -ffast-math
LDLIBS = -lstdc++ -lm
Out.txt : main.exe
	./main.exe > Out.txt
main.exe: main.o hello.o
	$(CXX) $(LDFLAGS) $^ $(LDLIBS) -o $@
main.o: hello.h main.cc
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(filter %.cc,$^) -o $@
hello.o: hello.h hello.cc
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $(filter %.cc,$^)
clean:
	$(RM) [Oo]ut* *.exe *.o
test:
	@echo "CXX:" $(CXX)
	@echo "RM:" $(RM)
	@echo "LDFLAGS:" $(LDFLAGS)
