diff options
Diffstat (limited to 'tools/nitrobanner/Makefile')
-rw-r--r-- | tools/nitrobanner/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/nitrobanner/Makefile b/tools/nitrobanner/Makefile new file mode 100644 index 00000000..322525bd --- /dev/null +++ b/tools/nitrobanner/Makefile @@ -0,0 +1,30 @@ +CXXFLAGS := -std=c++17 -O3 -Wall -Wextra -Wpedantic + +ifeq ($(OS),Windows_NT) +LDFLAGS += -lstdc++fs +else +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Darwin) +LDFLAGS += -lstdc++ -lc++ -lc /usr/local/opt/llvm@8/lib/libc++fs.a +else +LDFLAGS += -lstdc++fs +endif +endif + +OBJS = \ + banner.o \ + crc16.o \ + main.o + +.PHONY: all clean + +all: nitrobanner + +%.o: %.cpp + $(CXX) -c -o $@ $< $(CXXFLAGS) + +clean: + $(RM) nitrobanner nitrobanner.exe *.o + +nitrobanner: $(OBJS) + $(CXX) -o $@ $^ $(LDFLAGS) |