mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Further simplify Makefile
No functional change.
This commit is contained in:
parent
e460ab74ad
commit
f196c1bad8
1 changed files with 14 additions and 26 deletions
40
src/Makefile
40
src/Makefile
|
@ -170,28 +170,37 @@ endif
|
||||||
### ==========================================================================
|
### ==========================================================================
|
||||||
|
|
||||||
### 3.1 Selecting compiler (default = gcc)
|
### 3.1 Selecting compiler (default = gcc)
|
||||||
|
|
||||||
|
CXXFLAGS += -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
|
||||||
|
LDFLAGS += $(EXTRALDFLAGS)
|
||||||
|
|
||||||
ifeq ($(COMP),)
|
ifeq ($(COMP),)
|
||||||
COMP=gcc
|
COMP=gcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(COMP),mingw)
|
|
||||||
comp=mingw
|
|
||||||
CXX=g++
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(COMP),gcc)
|
ifeq ($(COMP),gcc)
|
||||||
comp=gcc
|
comp=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
|
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(COMP),mingw)
|
||||||
|
comp=mingw
|
||||||
|
CXX=g++
|
||||||
|
CXXFLAGS += -Wextra -Wshadow
|
||||||
|
LDFLAGS += -static-libstdc++ -static-libgcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(COMP),icc)
|
ifeq ($(COMP),icc)
|
||||||
comp=icc
|
comp=icc
|
||||||
CXX=icpc
|
CXX=icpc
|
||||||
|
CXXFLAGS += -diag-disable 1476,10120 -Wcheck -Wabi -Wdeprecated -strict-ansi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(COMP),clang)
|
ifeq ($(COMP),clang)
|
||||||
comp=clang
|
comp=clang
|
||||||
CXX=clang++
|
CXX=clang++
|
||||||
|
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(comp),icc)
|
ifeq ($(comp),icc)
|
||||||
|
@ -206,27 +215,6 @@ else
|
||||||
profile_clean = gcc-profile-clean
|
profile_clean = gcc-profile-clean
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### 3.2 General compiler and linker settings
|
|
||||||
CXXFLAGS = -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
|
|
||||||
LDFLAGS += $(EXTRALDFLAGS)
|
|
||||||
|
|
||||||
ifeq ($(comp),gcc)
|
|
||||||
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(comp),mingw)
|
|
||||||
CXXFLAGS += -Wextra -Wshadow
|
|
||||||
LDFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(comp),icc)
|
|
||||||
CXXFLAGS += -diag-disable 1476,10120 -Wcheck -Wabi -Wdeprecated -strict-ansi
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(comp),clang)
|
|
||||||
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(os),osx)
|
ifeq ($(os),osx)
|
||||||
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
||||||
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
||||||
|
|
Loading…
Add table
Reference in a new issue