add initial SDL/OpenGL template
This commit is contained in:
commit
fe6a3bfdb0
3 files changed
+98
No files matched your search
@@ -0,0 +1,22 @@
|
||||
FILE := ftgl_testing
|
||||
TARGET := $(FILE)
|
||||
|
||||
CXXFLAGS := $(shell sdl2-config --cflags) $(shell freetype-config --cflags)
|
||||
ifdef WIN32
|
||||
LIBS := -lopengl32 -lglu32 -lmingw32
|
||||
CXX := mingw32-g++
|
||||
TARGET := $(TARGET).exe
|
||||
else
|
||||
LIBS := -lGL -lGLU `sdl2-config --libs`
|
||||
endif
|
||||
LIBS += -lftgl $(shell freetype-config --libs)
|
||||
LDFLAGS := $(LIBS) $(shell sdl2-config --libs)
|
||||
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(FILE).cc
|
||||
$(CXX) -o $(TARGET) $(CXXFLAGS) $< $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
-rm -f $(TARGET) *~ *.o
|
||||
Reference in new issue
Block a user