import sdl-opengl-bare template
This commit is contained in:
commit
eae60acb14
3 files changed
+104
No files matched your search
@@ -0,0 +1,21 @@
|
||||
FILE := app
|
||||
TARGET := $(FILE)
|
||||
|
||||
CCFLAGS := $(shell sdl2-config --cflags)
|
||||
ifeq (MINGW,$(findstring MINGW,$(shell uname)))
|
||||
LIBS := -lopengl32 -lglu32 -lmingw32
|
||||
CXX := mingw32-g++
|
||||
TARGET := $(TARGET).exe
|
||||
else
|
||||
LIBS := -lGL -lGLU `sdl2-config --libs`
|
||||
endif
|
||||
LDFLAGS := $(LIBS) $(shell sdl2-config --libs)
|
||||
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(FILE).cc
|
||||
$(CXX) -o $(TARGET) $(CCFLAGS) $< $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
-rm -f $(TARGET) *~ *.o
|
||||
Reference in new issue
Block a user