determine if building on Windows automatically
This commit is contained in:
parent
51b8e2109f
commit
c6b69a04ef
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ FILE := sdl_tmplt
|
|||||||
TARGET := $(FILE)
|
TARGET := $(FILE)
|
||||||
|
|
||||||
CFLAGS := $(shell sdl2-config --cflags)
|
CFLAGS := $(shell sdl2-config --cflags)
|
||||||
ifdef WIN32
|
ifeq (MINGW,$(findstring MINGW,$(shell uname)))
|
||||||
LIBS := -lopengl32 -lglu32 -lmingw32
|
LIBS := -lopengl32 -lglu32 -lmingw32
|
||||||
CC := mingw32-gcc
|
CC := mingw32-gcc
|
||||||
TARGET := $(TARGET).exe
|
TARGET := $(TARGET).exe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user