sdl-opengl-bare/Makefile
josh d082c4ce09 modified Makefile to work on Windows with sdl-config batch script
git-svn-id: svn://anubis/sdl-opengl-bare@4 486f0dac-8830-0410-96c3-f050bc5976a0
2008-12-16 19:37:32 +00:00

22 lines
379 B
Makefile

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