EXESUFFIX = .exe
GLLIB = -lopengl32
ICON = obj/icon.o
-SDLLIBTYPE = --libs
+SDLLIBTYPE = --static-libs
MSG = Win32 on MinGW
+EXTRA = -static
else
#ifeq "$(OSTYPE)" "darwin"
LDFLAGS =
# Ugh, let's get rid of the ref to -lcurses [DONE]
-LIBS = `sdl2-config $(SDLLIBTYPE)` -lstdc++ -lz -lm $(GLLIB)
+LIBS = `sdl2-config $(SDLLIBTYPE)` -lstdc++ -lz -lm $(GLLIB) $(EXTRA)
INCS = -I. -Isrc
checkenv:
@echo
@echo -en "\033[01;33m***\033[00;32m Checking compilation environment... \033[00m"
-ifeq "" "$(shell which sdl-config)"
+ifeq "" "$(shell which sdl2-config)"
@echo
@echo
@echo -e "\033[01;33mIt seems that you don't have the SDL development libraries installed.