diff options
author | PlatinumMaster <PlatinumMaster@users.noreply.github.com> | 2020-06-07 14:34:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 14:34:31 -0400 |
commit | 7860c28c3fbf0686c5b4bcf50a9ebe3ca725fe6f (patch) | |
tree | 910f69afa59c0623b66d56aa17ad23aa0f6b8043 | |
parent | aae365a639011638127c4895c5f86963053bc281 (diff) |
Force g++-8 usage.
-rw-r--r-- | tools/knarc/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/knarc/Makefile b/tools/knarc/Makefile index 3f0e6492..3a31e6dc 100644 --- a/tools/knarc/Makefile +++ b/tools/knarc/Makefile @@ -1,7 +1,15 @@ -all: knarc +CXXFLAGS := -std=c++17 -O2 -Wall -Wno-switch -lstdc++fs + +SRCS := Source.cpp Narc.cpp +HEADERS := Narc.h -knarc: Source.cpp Narc.cpp - g++ -std=c++17 -o knarc Source.cpp Narc.cpp -lstdc++fs +.PHONY: all clean + +all: knarc + @: + +knarc: $(SRCS) $(HEADERS) + g++-8 $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS) clean: - rm knarc + $(RM) knarc knarc.exe |