Update Makefiles

This commit is contained in:
jakcron 2018-04-07 15:57:04 +08:00
parent 92183a90d4
commit bafdaffe13
9 changed files with 83 additions and 43 deletions

View file

@ -22,8 +22,8 @@ else
UNAME = $(shell uname -s) UNAME = $(shell uname -s)
ifeq ($(UNAME), Darwin) ifeq ($(UNAME), Darwin)
# MacOS Only Flags/Libs # MacOS Only Flags/Libs
CFLAGS += -Wunused-private-field CFLAGS += -Wno-unused-private-field
CXXFLAGS += -Wunused-private-field CXXFLAGS += -Wno-unused-private-field
ARFLAGS = rc ARFLAGS = rc
else else
# *nix Only Flags/Libs # *nix Only Flags/Libs

View file

@ -22,8 +22,8 @@ else
UNAME = $(shell uname -s) UNAME = $(shell uname -s)
ifeq ($(UNAME), Darwin) ifeq ($(UNAME), Darwin)
# MacOS Only Flags/Libs # MacOS Only Flags/Libs
CFLAGS += -Wunused-private-field CFLAGS += -Wno-unused-private-field
CXXFLAGS += -Wunused-private-field CXXFLAGS += -Wno-unused-private-field
ARFLAGS = rc ARFLAGS = rc
else else
# *nix Only Flags/Libs # *nix Only Flags/Libs

View file

@ -22,8 +22,8 @@ else
UNAME = $(shell uname -s) UNAME = $(shell uname -s)
ifeq ($(UNAME), Darwin) ifeq ($(UNAME), Darwin)
# MacOS Only Flags/Libs # MacOS Only Flags/Libs
CFLAGS += -Wunused-private-field CFLAGS += -Wno-unused-private-field
CXXFLAGS += -Wunused-private-field CXXFLAGS += -Wno-unused-private-field
ARFLAGS = rc ARFLAGS = rc
else else
# *nix Only Flags/Libs # *nix Only Flags/Libs

View file

@ -22,8 +22,8 @@ else
UNAME = $(shell uname -s) UNAME = $(shell uname -s)
ifeq ($(UNAME), Darwin) ifeq ($(UNAME), Darwin)
# MacOS Only Flags/Libs # MacOS Only Flags/Libs
CFLAGS += -Wunused-private-field CFLAGS += -Wno-unused-private-field
CXXFLAGS += -Wunused-private-field CXXFLAGS += -Wno-unused-private-field
ARFLAGS = rc ARFLAGS = rc
else else
# *nix Only Flags/Libs # *nix Only Flags/Libs

View file

@ -12,19 +12,27 @@ BIN_DIR = bin
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
# Compiler Settings # 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) ifeq ($(OS),Windows_NT)
# Windows Only Flags/Libs # Windows Only Flags/Libs
CC = x86_64-w64-mingw32-gcc CC = x86_64-w64-mingw32-gcc
CXX = x86_64-w64-mingw32-g++ CXX = x86_64-w64-mingw32-g++
CFLAGS += CFLAGS += -Wno-unused-but-set-variable
CXXFLAGS += CXXFLAGS += -Wno-unused-but-set-variable
LIBS += -static LIBS += -static
else else
# *nix Only Flags/Libs UNAME = $(shell uname -s)
CFLAGS += ifeq ($(UNAME), Darwin)
CXXFLAGS += # MacOS Only Flags/Libs
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 endif
all: build all: build

View file

@ -12,19 +12,27 @@ BIN_DIR = bin
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
# Compiler Settings # 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) ifeq ($(OS),Windows_NT)
# Windows Only Flags/Libs # Windows Only Flags/Libs
CC = x86_64-w64-mingw32-gcc CC = x86_64-w64-mingw32-gcc
CXX = x86_64-w64-mingw32-g++ CXX = x86_64-w64-mingw32-g++
CFLAGS += CFLAGS += -Wno-unused-but-set-variable
CXXFLAGS += CXXFLAGS += -Wno-unused-but-set-variable
LIBS += -static LIBS += -static
else else
# *nix Only Flags/Libs UNAME = $(shell uname -s)
CFLAGS += ifeq ($(UNAME), Darwin)
CXXFLAGS += # MacOS Only Flags/Libs
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 endif
all: build all: build

View file

@ -12,19 +12,27 @@ BIN_DIR = bin
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
# Compiler Settings # 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) ifeq ($(OS),Windows_NT)
# Windows Only Flags/Libs # Windows Only Flags/Libs
CC = x86_64-w64-mingw32-gcc CC = x86_64-w64-mingw32-gcc
CXX = x86_64-w64-mingw32-g++ CXX = x86_64-w64-mingw32-g++
CFLAGS += CFLAGS += -Wno-unused-but-set-variable
CXXFLAGS += CXXFLAGS += -Wno-unused-but-set-variable
LIBS += -static LIBS += -static
else else
# *nix Only Flags/Libs UNAME = $(shell uname -s)
CFLAGS += ifeq ($(UNAME), Darwin)
CXXFLAGS += # MacOS Only Flags/Libs
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 endif
all: build all: build

View file

@ -12,19 +12,27 @@ BIN_DIR = bin
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
# Compiler Settings # 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) ifeq ($(OS),Windows_NT)
# Windows Only Flags/Libs # Windows Only Flags/Libs
CC = x86_64-w64-mingw32-gcc CC = x86_64-w64-mingw32-gcc
CXX = x86_64-w64-mingw32-g++ CXX = x86_64-w64-mingw32-g++
CFLAGS += CFLAGS += -Wno-unused-but-set-variable
CXXFLAGS += CXXFLAGS += -Wno-unused-but-set-variable
LIBS += -static LIBS += -static
else else
# *nix Only Flags/Libs UNAME = $(shell uname -s)
CFLAGS += ifeq ($(UNAME), Darwin)
CXXFLAGS += # MacOS Only Flags/Libs
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 endif
all: build all: build

View file

@ -12,19 +12,27 @@ BIN_DIR = bin
OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR)) OUTPUT = $(BIN_DIR)/$(shell basename $(CURDIR))
# Compiler Settings # 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) ifeq ($(OS),Windows_NT)
# Windows Only Flags/Libs # Windows Only Flags/Libs
CC = x86_64-w64-mingw32-gcc CC = x86_64-w64-mingw32-gcc
CXX = x86_64-w64-mingw32-g++ CXX = x86_64-w64-mingw32-g++
CFLAGS += CFLAGS += -Wno-unused-but-set-variable
CXXFLAGS += CXXFLAGS += -Wno-unused-but-set-variable
LIBS += -static LIBS += -static
else else
# *nix Only Flags/Libs UNAME = $(shell uname -s)
CFLAGS += ifeq ($(UNAME), Darwin)
CXXFLAGS += # MacOS Only Flags/Libs
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 endif
all: build all: build