update to SDL2

This commit is contained in:
josh committed 2014-06-06 22:49:51 -04:00
1 parent 27487dd243
commit bbfeeae732
2 files changed
+19 -13

No files matched your search

+3 -3
View File
@@ -1,15 +1,15 @@
FILE := sdl_tmplt
TARGET := $(FILE)
CFLAGS := $(shell sdl-config --cflags)
CFLAGS := $(shell sdl2-config --cflags)
ifdef WIN32
LIBS := -lopengl32 -lglu32 -lmingw32
CC := mingw32-gcc
TARGET := $(TARGET).exe
else
LIBS := -lGL -lGLU `sdl-config --libs`
LIBS := -lGL -lGLU `sdl2-config --libs`
endif
LDFLAGS := $(LIBS) $(shell sdl-config --libs)
LDFLAGS := $(LIBS) $(shell sdl2-config --libs)
all: $(TARGET)