commit 894daa68c1e86b41d03d041bd550eef059fcfb52 parent 6ae40f4243775d67866a474debcd8f9726eb2a64 Author: Henry Wilson <henry@henryandlizzy.uk> Date: Wed, 30 Aug 2023 17:53:12 +0000 makefile: depend on headers Diffstat:
M | makefile | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/makefile b/makefile @@ -1,4 +1,4 @@ -CXXFLAGS := -std=c++20 -fcolor-diagnostics +CXXFLAGS := -std=c++20 -fcolor-diagnostics -Wall -Wextra -Werror ALL := protohack-0 \ protohack-1 \ @@ -8,9 +8,17 @@ ALL := protohack-0 \ all: $(ALL) -protohack-1: protohack-1.cpp +protohack-0: protohack-0.cpp fd.hpp inet.hpp + +protohack-1: fd.hpp inet.hpp ${LINK.cc} -o protohack-1 protohack-1.cpp -lcrypto +protohack-2: protohack-2.cpp fd.hpp inet.hpp + +protohack-3: protohack-3.cpp fd.hpp inet.hpp + +protohack-4: protohack-4.cpp fd.hpp inet.hpp + clean: rm -f $(ALL)