Minor changes to fix compile errors in linux.

~Tom
This commit is contained in:
2006-09-14 16:34:57 -04:00
parent 6c807cd104
commit 8b6053141d
3 changed files with 25 additions and 28 deletions

2
configure vendored
View File

@@ -8,7 +8,7 @@ Darwin)
USE_AGL=1
;;
Linux)
ln -sf Makefile.linux makefile
ln -sf Makefile.linux Makefile
ln -sf Makefile.linux src/Makefile
#this should be set as a default if no option is specified and set via options otherwise

View File

@@ -2,7 +2,7 @@
CPP = g++ -g
INCLUDES = -I/usr/X11R6/include
LD = g++
OBJECTS = screen.o bmp.o camera.o ctrls.o level.o mygl.o myglFont.o myglTexture.o physics.o player.o strmanip.o tga.o vector.o window.o keys.o main.o
OBJECTS = screen.o bmp.o camera.o ctrls.o level.o mygl.o myglFont.o myglTexture.o player.o strmanip.o tga.o vector.o window.o keys.o main.o
LIBS = -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm
LIBRARIES =
SO_LIBS =
@@ -12,17 +12,17 @@ LDFLAGS = $(LIBS)
.Phony: all clean install
all: ../OpenArena/OA
all: ../OpenArena
clean:
rm -f *.o
rm -f ../OpenArena/OA
rm -f ../OpenArena
install:
#Executables
../OpenArena/OA: $(OBJECTS)
$(LD) $(LDFLAGS) -o ../OpenArena/OA $(OBJECTS)
../OpenArena: $(OBJECTS)
$(LD) $(LDFLAGS) -o ../OpenArena $(OBJECTS)
#Dynamic Libraries
oa_game.so:
@@ -45,7 +45,7 @@ bmp.o: bmp.cpp bmp.h mygl.h datatypes.h texture.h config.h
camera.o: camera.cpp camera.h vector.h mygl.h screen.h config.h
$(CPP) $(CPPFLAGS) -c -o camera.o camera.cpp
ctrls.o: ctrls.cpp ctrls.h keys.h physics.h datatypes.h list.h config.h
ctrls.o: ctrls.cpp ctrls.h keys.h datatypes.h list.h config.h
$(CPP) $(CPPFLAGS) -c -o ctrls.o ctrls.cpp
level.o: level.cpp level.h version.h config.h
@@ -60,9 +60,6 @@ myglFont.o: myglFont.cpp myglFont.h config.h
myglTexture.o: myglTexture.cpp myglTexture.h config.h
$(CPP) $(CPPFLAGS) -c -o myglTexture.o myglTexture.cpp
physics.o: physics.cpp physics.h config.h
$(CPP) $(CPPFLAGS)-c -o physics.o physics.cpp
player.o: player.cpp player.h config.h
$(CPP) $(CPPFLAGS) -c -o player.o player.cpp

View File

@@ -128,15 +128,15 @@ int main(int argc, char** argv)
level.screen.SetColorDepth(24);
}
g_Screen.SetOnInit(InitGL);
g_Screen.SetOnResize(ResizeGLScene);
// g_Screen.SetOnInit(InitGL);
// g_Screen.SetOnResize(ResizeGLScene);
if(!g_Screen.Open(OPENARENA_VERSION, level.screen.GetWidth(), level.screen.GetHeight(), level.screen.GetColorDepth(), level.screen.GetFullscreen()))
{
return 1;
}
level.SetWindow(g_Screen);
level.SetWindow(&g_Screen);
if(level.nextLevel == "")
{