makefile macht subdir mit
This commit is contained in:
parent
744763dd4d
commit
e4d98e5434
4
Makefile
4
Makefile
|
@ -2,8 +2,8 @@ CC = g++
|
||||||
AR = ar
|
AR = ar
|
||||||
OBJECTS = punkt3d.o punkt2d.o emath.o emath_opengl.o glcolor.o gldrawhelper.o glfontengine.o glrect.o gltexture.o matrix.o quaternion.o rotationsmatrix.o glsdlscreen.o sdlfuncs.o fpsmanager.o
|
OBJECTS = punkt3d.o punkt2d.o emath.o emath_opengl.o glcolor.o gldrawhelper.o glfontengine.o glrect.o gltexture.o matrix.o quaternion.o rotationsmatrix.o glsdlscreen.o sdlfuncs.o fpsmanager.o
|
||||||
OBJOPT = -Wall -c `sdl-config --cflags`
|
OBJOPT = -Wall -c `sdl-config --cflags`
|
||||||
SUBDIRS = glgui glmenu
|
SUBDIRS = glgui glmenu models
|
||||||
SUBDIROBJECTS = glgui/*.o glmenu/*.o
|
SUBDIROBJECTS = glgui/*.o glmenu/*.o models/*.o
|
||||||
VERSION = 0.0.1
|
VERSION = 0.0.1
|
||||||
LIBNAME = libsegl
|
LIBNAME = libsegl
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ bool GLSDLScreen::isOK() {
|
||||||
bool GLSDLScreen::apply() {
|
bool GLSDLScreen::apply() {
|
||||||
if(!SDL_WasInit(SDL_INIT_VIDEO)) {
|
if(!SDL_WasInit(SDL_INIT_VIDEO)) {
|
||||||
if(SDL_Init(SDL_INIT_VIDEO)==-1) {
|
if(SDL_Init(SDL_INIT_VIDEO)==-1) {
|
||||||
|
std::cerr << "Konnte SDL_VIDEO nicht initialisieren" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue