sdl-opengl-bare/Makefile
2014-06-06 22:49:51 -04:00

22 lines
382 B
Makefile

FILE := sdl_tmplt
TARGET := $(FILE)
CFLAGS := $(shell sdl2-config --cflags)
ifdef WIN32
LIBS := -lopengl32 -lglu32 -lmingw32
CC := mingw32-gcc
TARGET := $(TARGET).exe
else
LIBS := -lGL -lGLU `sdl2-config --libs`
endif
LDFLAGS := $(LIBS) $(shell sdl2-config --libs)
all: $(TARGET)
$(TARGET): $(FILE).c
$(CC) -o $(TARGET) $(CFLAGS) $< $(LDFLAGS)
clean:
-rm -f $(TARGET) *~ *.o