From: Tobias Gläßer Date: Thu, 22 Jan 2004 21:59:23 +0000 (+0000) Subject: Possibility to compile without OpenGL support. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5f67e69ee661a0f976cb7c6f52967f484389850d;p=supertux.git Possibility to compile without OpenGL support. SVN-Revision: 101 --- diff --git a/Makefile b/Makefile index 181c39be2..3a5c5aecd 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ TARGET=supertux TARGET_DEF=LINUX CFLAGS=-Wall -O2 $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \ - -D$(NOSOUNDFLAG) -D$(TARGET_DEF) -DJOY_$(JOY) $(DEBUG_FLAG) + -D$(NOSOUNDFLAG) -D$(NOOPENGLFLAG) -D$(TARGET_DEF) -DJOY_$(JOY) $(DEBUG_FLAG) # Other definitions: @@ -43,6 +43,7 @@ CFLAGS=-Wall -O2 $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \ SDL_MIXER=-lSDL_mixer SDL_IMAGE=-lSDL_image NOSOUNDFLAG=__SOUND +NOOPENGLFLAG=__OPENGL SDL_LIB=$(SDL_MIXER) $(SDL_IMAGE) $(SDL_LDFLAGS) SDL_CFLAGS := $(shell sdl-config --cflags) SDL_LDFLAGS := $(shell sdl-config --libs) @@ -76,6 +77,12 @@ uninstall: nosound: make supertux SDL_MIXER= NOSOUNDFLAG=NOSOUND +noopengl: + make supertux GL_LIB= NOOPENGLFLAG=NOOPENGL + +nosoundopengl: + make supertux GL_LIB= SDL_MIXER= NOSOUNDFLAG=NOSOUND NOOPENGLFLAG=NOOPENGL + win32: make TARGET_DEF=WIN32 TARGET=supertux.exe \ DATA_PREFIX=data/