determine if building on Windows automatically

This commit is contained in:
Josh Holtrop 2014-06-20 12:20:41 -04:00
parent 51b8e2109f
commit c6b69a04ef

View File

@ -2,7 +2,7 @@ FILE := sdl_tmplt
TARGET := $(FILE)
CFLAGS := $(shell sdl2-config --cflags)
ifdef WIN32
ifeq (MINGW,$(findstring MINGW,$(shell uname)))
LIBS := -lopengl32 -lglu32 -lmingw32
CC := mingw32-gcc
TARGET := $(TARGET).exe