Bennene posix/ nach unix/ um, da dies irgendwie treffender ist

This commit is contained in:
Yamagi Burmeister 2010-10-18 15:08:13 +00:00
parent d65849f64d
commit f78eb87c3c
15 changed files with 43 additions and 45 deletions

View file

@ -3,8 +3,8 @@
# # # #
# Just type "make" to compile the # # Just type "make" to compile the #
# - SDL Client (quake2) # # - SDL Client (quake2) #
# - Server (quake2ded) # # - Server (q2ded) #
# - SDL OpenGL-Renderer (ref_gl.so) # # - SDL OpenGL-Refresher (ref_gl.so) #
# - games: # # - games: #
# - Quake II (quake2) # # - Quake II (quake2) #
# - Quake II - Threewave Capture The Flag (ctf) # # - Quake II - Threewave Capture The Flag (ctf) #
@ -124,9 +124,8 @@ client:
build/common/model \ build/common/model \
build/common/unzip \ build/common/unzip \
build/gameabi \ build/gameabi \
build/posix \ build/unix \
build/posix/glob \ build/unix/vid \
build/posix/vid \
build/sdl \ build/sdl \
build/server \ build/server \
build/unzip \ build/unzip \
@ -142,8 +141,7 @@ dedicated_server:
build/dedicated_server_common/message \ build/dedicated_server_common/message \
build/dedicated_server_common/model \ build/dedicated_server_common/model \
build/dedicated_server_common/unzip \ build/dedicated_server_common/unzip \
build/dedicated_server_posix \ build/dedicated_server_unix \
build/dedicated_server_posix/glob \
release release
$(MAKE) release/q2ded $(MAKE) release/q2ded
@ -151,7 +149,7 @@ ref_gl:
@-mkdir -p build \ @-mkdir -p build \
build/ref_gl \ build/ref_gl \
build/ref_gl_game \ build/ref_gl_game \
build/ref_gl_posix \ build/ref_gl_unix \
release release
$(MAKE) release/ref_gl.so $(MAKE) release/ref_gl.so
@ -253,12 +251,12 @@ SERVER_OBJS = \
# POSIX platform objects # POSIX platform objects
POSIX_OBJS = \ POSIX_OBJS = \
build/posix/network.o \ build/unix/network.o \
build/posix/hunk.o \ build/unix/hunk.o \
build/posix/system.o \ build/unix/system.o \
build/posix/glob.o \ build/unix/glob.o \
build/posix/vid/menu.o \ build/unix/vid/menu.o \
build/posix/vid/refresh.o build/unix/vid/refresh.o
# ---------- # ----------
@ -312,10 +310,10 @@ DEDICATED_SERVER_COMMON_OBJS = \
# Dedicated server POSIX platform objects # Dedicated server POSIX platform objects
DEDICATED_SERVER_POSIX_OBJS = \ DEDICATED_SERVER_POSIX_OBJS = \
build/dedicated_server_posix/glob.o \ build/dedicated_server_unix/glob.o \
build/dedicated_server_posix/network.o \ build/dedicated_server_unix/network.o \
build/dedicated_server_posix/hunk.o \ build/dedicated_server_unix/hunk.o \
build/dedicated_server_posix/system.o build/dedicated_server_unix/system.o
# ---------- # ----------
@ -341,11 +339,11 @@ OPENGL_GAME_OBJS = \
# OpenGL refresher POSIX platform object # OpenGL refresher POSIX platform object
OPENGL_POSIX_OBJS = \ OPENGL_POSIX_OBJS = \
build/ref_gl_posix/input.o \ build/ref_gl_unix/input.o \
build/ref_gl_posix/glob.o \ build/ref_gl_unix/glob.o \
build/ref_gl_posix/hunk.o \ build/ref_gl_unix/hunk.o \
build/ref_gl_posix/qgl.o \ build/ref_gl_unix/qgl.o \
build/ref_gl_posix/refresh.o build/ref_gl_unix/refresh.o
# ---------- # ----------
@ -616,23 +614,23 @@ build/server/sv_world.o : src/server/sv_world.c
# ---------- # ----------
# POSIX build # Unix build
build/posix/network.o : src/posix/network.c build/unix/network.o : src/unix/network.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
build/posix/hunk.o : src/posix/hunk.c build/unix/hunk.o : src/unix/hunk.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
build/posix/system.o : src/posix/system.c build/unix/system.o : src/unix/system.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
build/posix/glob.o : src/posix/glob.c build/unix/glob.o : src/unix/glob.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
build/posix/vid/menu.o : src/posix/vid/menu.c build/unix/vid/menu.o : src/unix/vid/menu.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
build/posix/vid/refresh.o : src/posix/vid/refresh.c build/unix/vid/refresh.o : src/unix/vid/refresh.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
# ---------- # ----------
@ -743,17 +741,17 @@ build/dedicated_server_common/unzip/unzip.o : src/common/unzip/unzip.c
$(CC) $(CFLAGS_CLIENT) -o $@ -c $< $(CC) $(CFLAGS_CLIENT) -o $@ -c $<
# ---------- # ----------
# Dedicated server POSIX build # Dedicated server Unix build
build/dedicated_server_posix/glob.o : src/posix/glob.c build/dedicated_server_unix/glob.o : src/unix/glob.c
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $< $(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
build/dedicated_server_posix/network.o : src/posix/network.c build/dedicated_server_unix/network.o : src/unix/network.c
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $< $(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
build/dedicated_server_posix/hunk.o : src/posix/hunk.c build/dedicated_server_unix/hunk.o : src/unix/hunk.c
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $< $(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
build/dedicated_server_posix/system.o : src/posix/system.c build/dedicated_server_unix/system.o : src/unix/system.c
$(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $< $(CC) $(CFLAGS_DEDICATED_SERVER) -o $@ -c $<
# ---------- # ----------
@ -793,20 +791,20 @@ build/ref_gl_game/q_shared.o: src/game/baseq2/q_shared.c
# ---------- # ----------
# OpenGL refresher POSIX build # OpenGL refresher Unix build
build/ref_gl_posix/input.o: src/posix/qgl/input.c build/ref_gl_unix/input.o: src/unix/qgl/input.c
$(CC) $(CFLAGS_OPENGL) -o $@ -c $< $(CC) $(CFLAGS_OPENGL) -o $@ -c $<
build/ref_gl_posix/glob.o: src/posix/glob.c build/ref_gl_unix/glob.o: src/unix/glob.c
$(CC) $(CFLAGS_OPENGL) -o $@ -c $< $(CC) $(CFLAGS_OPENGL) -o $@ -c $<
build/ref_gl_posix/hunk.o: src/posix/hunk.c build/ref_gl_unix/hunk.o: src/unix/hunk.c
$(CC) $(CFLAGS_OPENGL) -o $@ -c $< $(CC) $(CFLAGS_OPENGL) -o $@ -c $<
build/ref_gl_posix/qgl.o: src/posix/qgl/qgl.c build/ref_gl_unix/qgl.o: src/unix/qgl/qgl.c
$(CC) $(CFLAGS_OPENGL) -o $@ -c $< $(CC) $(CFLAGS_OPENGL) -o $@ -c $<
build/ref_gl_posix/refresh.o: src/sdl/refresh.c build/ref_gl_unix/refresh.o: src/sdl/refresh.c
$(CC) $(CFLAGS_OPENGL) $(SDLCFLAGS) -o $@ -c $< $(CC) $(CFLAGS_OPENGL) $(SDLCFLAGS) -o $@ -c $<
# ---------- # ----------

View file

@ -26,7 +26,7 @@
*/ */
#include "header/common.h" #include "header/common.h"
#include "../posix/header/glob.h" #include "../unix/header/glob.h"
#include "unzip/unzip.h" #include "unzip/unzip.h"
#define MAX_HANDLES 512 #define MAX_HANDLES 512

View file

@ -27,10 +27,10 @@
#include "SDL.h" #include "SDL.h"
#include <GL/gl.h> #include <GL/gl.h>
#include "../refresh/header/local.h" #include "../refresh/header/local.h"
#include "../posix/qgl/header/glwindow.h" #include "../unix/qgl/header/glwindow.h"
#include "../client/input/header/keyboard.h" #include "../client/input/header/keyboard.h"
#include "../posix/header/unix.h" #include "../unix/header/unix.h"
/*****************************************************************************/ /*****************************************************************************/
@ -293,7 +293,7 @@ int GLimp_Init( void *hInstance, void *wndProc )
static void SetSDLIcon() static void SetSDLIcon()
{ {
#include "../posix/qgl/icon/q2icon.xbm" #include "../unix/qgl/icon/q2icon.xbm"
SDL_Surface *icon; SDL_Surface *icon;
SDL_Color color; SDL_Color color;
Uint8 *ptr; Uint8 *ptr;