From 1dd31333cf0734259f720fdcb5bbef5145d07292 Mon Sep 17 00:00:00 2001 From: kr3nshaw <20672068+kr3nshaw@users.noreply.github.com> Date: Mon, 8 Jun 2020 22:42:54 +1000 Subject: Changed first line of knarc makefile --- tools/knarc/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/knarc/Makefile b/tools/knarc/Makefile index 3fc47182..2e851af6 100644 --- a/tools/knarc/Makefile +++ b/tools/knarc/Makefile @@ -1,10 +1,17 @@ +CXX := g++ + +CXXFLAGS := -std=c++17 -O2 -Wall -Wno-switch -lstdc++fs + +SRCS := Source.cpp Narc.cpp +HEADERS := Narc.h + .PHONY: all clean all: knarc @: -knarc: Source.cpp Narc.cpp Narc.h - g++ Source.cpp Narc.cpp -o $@ -std=c++17 -O2 -Wall -Wno-switch -lstdc++fs +knarc: $(SRCS) $(HEADERS) + $(CXX) $(SRCS) -o $@ $(LDFLAGS) $(CXXFLAGS) clean: $(RM) knarc knarc.exe -- cgit v1.2.3