mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Add "mingw" compiler to Makefile
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
d607febb38
commit
cfca92cd7c
1 changed files with 19 additions and 1 deletions
20
src/Makefile
20
src/Makefile
|
@ -200,6 +200,15 @@ ifeq ($(COMP),)
|
||||||
COMP=gcc
|
COMP=gcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(COMP),mingw)
|
||||||
|
comp=mingw
|
||||||
|
CXX=g++
|
||||||
|
profile_prepare = gcc-profile-prepare
|
||||||
|
profile_make = gcc-profile-make
|
||||||
|
profile_use = gcc-profile-use
|
||||||
|
profile_clean = gcc-profile-clean
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(COMP),gcc)
|
ifeq ($(COMP),gcc)
|
||||||
comp=gcc
|
comp=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
|
@ -225,6 +234,10 @@ ifeq ($(comp),gcc)
|
||||||
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra
|
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(comp),mingw)
|
||||||
|
CXXFLAGS += -Wno-long-long -Wextra
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(comp),icc)
|
ifeq ($(comp),icc)
|
||||||
CXXFLAGS += -wd383,981,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
|
CXXFLAGS += -wd383,981,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
|
||||||
endif
|
endif
|
||||||
|
@ -261,6 +274,10 @@ ifeq ($(optimize),yes)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(comp),mingw)
|
||||||
|
CXXFLAGS += -O3
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(comp),icc)
|
ifeq ($(comp),icc)
|
||||||
CXXFLAGS += -fast
|
CXXFLAGS += -fast
|
||||||
|
|
||||||
|
@ -340,6 +357,7 @@ help:
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "gcc > Gnu compiler (default)"
|
@echo "gcc > Gnu compiler (default)"
|
||||||
@echo "icc > Intel compiler"
|
@echo "icc > Intel compiler"
|
||||||
|
@echo "mingw > Gnu compiler with MinGW under Windows"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Non-standard targets:"
|
@echo "Non-standard targets:"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
@ -453,7 +471,7 @@ config-sanity:
|
||||||
@test "$(prefetch)" = "yes" || test "$(prefetch)" = "no"
|
@test "$(prefetch)" = "yes" || test "$(prefetch)" = "no"
|
||||||
@test "$(bsfq)" = "yes" || test "$(bsfq)" = "no"
|
@test "$(bsfq)" = "yes" || test "$(bsfq)" = "no"
|
||||||
@test "$(popcnt)" = "yes" || test "$(popcnt)" = "no"
|
@test "$(popcnt)" = "yes" || test "$(popcnt)" = "no"
|
||||||
@test "$(comp)" = "gcc" || test "$(comp)" = "icc"
|
@test "$(comp)" = "gcc" || test "$(comp)" = "icc" || test "$(comp)" = "mingw"
|
||||||
|
|
||||||
$(EXE): $(OBJS)
|
$(EXE): $(OBJS)
|
||||||
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
|
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue