COMP=gcc
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)
comp=gcc
CXX=g++
CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra
endif
+ifeq ($(comp),mingw)
+ CXXFLAGS += -Wno-long-long -Wextra
+endif
+
ifeq ($(comp),icc)
CXXFLAGS += -wd383,981,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi
endif
endif
endif
+ ifeq ($(comp),mingw)
+ CXXFLAGS += -O3
+ endif
+
ifeq ($(comp),icc)
CXXFLAGS += -fast
@echo ""
@echo "gcc > Gnu compiler (default)"
@echo "icc > Intel compiler"
+ @echo "mingw > Gnu compiler with MinGW under Windows"
@echo ""
@echo "Non-standard targets:"
@echo ""
@test "$(prefetch)" = "yes" || test "$(prefetch)" = "no"
@test "$(bsfq)" = "yes" || test "$(bsfq)" = "no"
@test "$(popcnt)" = "yes" || test "$(popcnt)" = "no"
- @test "$(comp)" = "gcc" || test "$(comp)" = "icc"
+ @test "$(comp)" = "gcc" || test "$(comp)" = "icc" || test "$(comp)" = "mingw"
$(EXE): $(OBJS)
$(CXX) -o $@ $(OBJS) $(LDFLAGS)