diff options
author | kr3nshaw <20672068+kr3nshaw@users.noreply.github.com> | 2020-06-08 04:35:55 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 04:35:55 +1000 |
commit | 539a43892446effb92a0082df2287514530d85d1 (patch) | |
tree | 910f69afa59c0623b66d56aa17ad23aa0f6b8043 | |
parent | ff60ecd00a76db3fe747ecc38d0fa5e457426f85 (diff) | |
parent | 7860c28c3fbf0686c5b4bcf50a9ebe3ca725fe6f (diff) |
Merge pull request #3 from PlatinumMaster/patch-1
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 |