From bafdaffe133e497681e2fd7bd6ed4ffac6f6bbac Mon Sep 17 00:00:00 2001 From: jakcron Date: Sat, 7 Apr 2018 15:57:04 +0800 Subject: [PATCH] Update Makefiles --- lib/libcrypto/makefile | 4 ++-- lib/libes/makefile | 4 ++-- lib/libfnd/makefile | 4 ++-- lib/libnx/makefile | 4 ++-- programs/ncatool/makefile | 22 +++++++++++++++------- programs/npdmtool/makefile | 22 +++++++++++++++------- programs/pfstool/makefile | 22 +++++++++++++++------- programs/tiktool/makefile | 22 +++++++++++++++------- programs/xcitool/makefile | 22 +++++++++++++++------- 9 files changed, 83 insertions(+), 43 deletions(-) diff --git a/lib/libcrypto/makefile b/lib/libcrypto/makefile index d440c11..8e35f03 100644 --- a/lib/libcrypto/makefile +++ b/lib/libcrypto/makefile @@ -22,8 +22,8 @@ else UNAME = $(shell uname -s) ifeq ($(UNAME), Darwin) # MacOS Only Flags/Libs - CFLAGS += -Wunused-private-field - CXXFLAGS += -Wunused-private-field + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field ARFLAGS = rc else # *nix Only Flags/Libs diff --git a/lib/libes/makefile b/lib/libes/makefile index 3f707e4..ba0b6e8 100644 --- a/lib/libes/makefile +++ b/lib/libes/makefile @@ -22,8 +22,8 @@ else UNAME = $(shell uname -s) ifeq ($(UNAME), Darwin) # MacOS Only Flags/Libs - CFLAGS += -Wunused-private-field - CXXFLAGS += -Wunused-private-field + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field ARFLAGS = rc else # *nix Only Flags/Libs diff --git a/lib/libfnd/makefile b/lib/libfnd/makefile index e9b75b4..a5a2c72 100644 --- a/lib/libfnd/makefile +++ b/lib/libfnd/makefile @@ -22,8 +22,8 @@ else UNAME = $(shell uname -s) ifeq ($(UNAME), Darwin) # MacOS Only Flags/Libs - CFLAGS += -Wunused-private-field - CXXFLAGS += -Wunused-private-field + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field ARFLAGS = rc else # *nix Only Flags/Libs diff --git a/lib/libnx/makefile b/lib/libnx/makefile index 3f707e4..ba0b6e8 100644 --- a/lib/libnx/makefile +++ b/lib/libnx/makefile @@ -22,8 +22,8 @@ else UNAME = $(shell uname -s) ifeq ($(UNAME), Darwin) # MacOS Only Flags/Libs - CFLAGS += -Wunused-private-field - CXXFLAGS += -Wunused-private-field + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field ARFLAGS = rc else # *nix Only Flags/Libs diff --git a/programs/ncatool/makefile b/programs/ncatool/makefile index 3d96a8d..da01e4a 100644 --- a/programs/ncatool/makefile +++ b/programs/ncatool/makefile @@ -12,19 +12,27 @@ BIN_DIR = bin OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) # Compiler Settings -CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-but-set-variable -Wno-unused-value +CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value ifeq ($(OS),Windows_NT) # Windows Only Flags/Libs CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ - CFLAGS += - CXXFLAGS += + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable LIBS += -static else - # *nix Only Flags/Libs - CFLAGS += - CXXFLAGS += - LIBS += + UNAME = $(shell uname -s) + ifeq ($(UNAME), Darwin) + # MacOS Only Flags/Libs + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field + LIBS += + else + # *nix Only Flags/Libs + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable + LIBS += + endif endif all: build diff --git a/programs/npdmtool/makefile b/programs/npdmtool/makefile index 3d96a8d..da01e4a 100644 --- a/programs/npdmtool/makefile +++ b/programs/npdmtool/makefile @@ -12,19 +12,27 @@ BIN_DIR = bin OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) # Compiler Settings -CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-but-set-variable -Wno-unused-value +CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value ifeq ($(OS),Windows_NT) # Windows Only Flags/Libs CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ - CFLAGS += - CXXFLAGS += + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable LIBS += -static else - # *nix Only Flags/Libs - CFLAGS += - CXXFLAGS += - LIBS += + UNAME = $(shell uname -s) + ifeq ($(UNAME), Darwin) + # MacOS Only Flags/Libs + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field + LIBS += + else + # *nix Only Flags/Libs + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable + LIBS += + endif endif all: build diff --git a/programs/pfstool/makefile b/programs/pfstool/makefile index 3d96a8d..da01e4a 100644 --- a/programs/pfstool/makefile +++ b/programs/pfstool/makefile @@ -12,19 +12,27 @@ BIN_DIR = bin OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) # Compiler Settings -CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-but-set-variable -Wno-unused-value +CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value ifeq ($(OS),Windows_NT) # Windows Only Flags/Libs CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ - CFLAGS += - CXXFLAGS += + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable LIBS += -static else - # *nix Only Flags/Libs - CFLAGS += - CXXFLAGS += - LIBS += + UNAME = $(shell uname -s) + ifeq ($(UNAME), Darwin) + # MacOS Only Flags/Libs + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field + LIBS += + else + # *nix Only Flags/Libs + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable + LIBS += + endif endif all: build diff --git a/programs/tiktool/makefile b/programs/tiktool/makefile index 5377914..3cfd074 100644 --- a/programs/tiktool/makefile +++ b/programs/tiktool/makefile @@ -12,19 +12,27 @@ BIN_DIR = bin OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) # Compiler Settings -CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-but-set-variable -Wno-unused-value +CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value ifeq ($(OS),Windows_NT) # Windows Only Flags/Libs CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ - CFLAGS += - CXXFLAGS += + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable LIBS += -static else - # *nix Only Flags/Libs - CFLAGS += - CXXFLAGS += - LIBS += + UNAME = $(shell uname -s) + ifeq ($(UNAME), Darwin) + # MacOS Only Flags/Libs + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field + LIBS += + else + # *nix Only Flags/Libs + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable + LIBS += + endif endif all: build diff --git a/programs/xcitool/makefile b/programs/xcitool/makefile index 3d96a8d..da01e4a 100644 --- a/programs/xcitool/makefile +++ b/programs/xcitool/makefile @@ -12,19 +12,27 @@ BIN_DIR = bin OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) # Compiler Settings -CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-but-set-variable -Wno-unused-value +CXXFLAGS = -std=c++11 $(INCS) -D__STDC_FORMAT_MACROS -Wall -Wno-unused-value ifeq ($(OS),Windows_NT) # Windows Only Flags/Libs CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ - CFLAGS += - CXXFLAGS += + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable LIBS += -static else - # *nix Only Flags/Libs - CFLAGS += - CXXFLAGS += - LIBS += + UNAME = $(shell uname -s) + ifeq ($(UNAME), Darwin) + # MacOS Only Flags/Libs + CFLAGS += -Wno-unused-private-field + CXXFLAGS += -Wno-unused-private-field + LIBS += + else + # *nix Only Flags/Libs + CFLAGS += -Wno-unused-but-set-variable + CXXFLAGS += -Wno-unused-but-set-variable + LIBS += + endif endif all: build