mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
Makefile, Makefile.w32, Makefile.w64: renamed the binary name to quakespasm[.exe]
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@49 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
bf422e326a
commit
a6161368ad
3 changed files with 28 additions and 31 deletions
|
@ -1,14 +1,11 @@
|
||||||
|
# GNU Makefile for QuakeSpasm, Feb. 18, 2010
|
||||||
# Hacked Makefile for fitzquake_sdl_20100125 by Ozkan & Steven, Jan. 31, 2010
|
|
||||||
# Tested on Fedora-7, Fedora-6_amd64, FreeBSD-7.0. Untested on MacOSX, Win32
|
|
||||||
#
|
#
|
||||||
# To do it, just move this file to "fitzquake_sdl_20100125/Quake", and "make"
|
# You need SDL and SDL_net fully installed.
|
||||||
# You'll need SDL and SDL_net fully installed.
|
|
||||||
# "make DEBUG=1" builds debug client
|
# "make DEBUG=1" builds debug client
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations
|
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations
|
||||||
#
|
#
|
||||||
# Currently build objects are separate from those of codeblocks, but this may change.
|
# Build objects are separate from those of codeblocks for now
|
||||||
# FreeBSD users may have to mess with include directories and also "-nosound"
|
# (we aren't using codeblocks).
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|
||||||
|
@ -112,7 +109,7 @@ LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS))
|
||||||
|
|
||||||
.PHONY: clean debug release
|
.PHONY: clean debug release
|
||||||
|
|
||||||
DEFAULT_TARGET := fitzquake
|
DEFAULT_TARGET := quakespasm
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# rules
|
# rules
|
||||||
|
@ -122,7 +119,7 @@ DEFAULT_TARGET := fitzquake
|
||||||
$(CC) $(DFLAGS) -c $(CFLAGS) $(X11_CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
$(CC) $(DFLAGS) -c $(CFLAGS) $(X11_CFLAGS) $(SDL_CFLAGS) -o $@ $^
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# FitzQuake SDL objects
|
# objects
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
OBJS := \
|
OBJS := \
|
||||||
|
@ -140,16 +137,16 @@ common.o gl_rlight.o host_cmd.o net_loop.o r_brush.o sv_main.o
|
||||||
# build rules for Linux
|
# build rules for Linux
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
fitzquake: $(OBJS)
|
quakespasm: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o fitzquake $(OBJS) $(X11_LFLAGS) $(SDL_LFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) -o quakespasm $(OBJS) $(X11_LFLAGS) $(SDL_LFLAGS) $(LIBS)
|
||||||
$(STRIP_CMD) $@
|
$(STRIP_CMD) $@
|
||||||
|
|
||||||
release: fitzquake
|
release: quakespasm
|
||||||
debug:
|
debug:
|
||||||
$(error Use "make DEBUG=1")
|
$(error Use "make DEBUG=1")
|
||||||
|
|
||||||
install: fitzquake
|
install: quakespasm
|
||||||
mv fitzquake /usr/local/games/quake
|
mv quakespasm /usr/local/games/quake
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(shell find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name '*.res' -o -name $(DEFAULT_TARGET) \) -print)
|
rm -f $(shell find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name '*.res' -o -name $(DEFAULT_TARGET) \) -print)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# GNU Makefile for cross-compiling fitzquake.exe (Win32 : MinGW)
|
# GNU Makefile for cross-compiling quakespasm.exe (Win32 : MinGW)
|
||||||
# using cross-toolchains on a linux host / Jan. 31, 2010
|
# using cross-toolchains on a linux host / Feb. 18, 2010.
|
||||||
# "make DEBUG=1" builds debug client
|
# "make DEBUG=1" builds debug client
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for sdl-config from cross-compiled SDL
|
# "make SDL_CONFIG=/path/to/sdl-config" for sdl-config from cross-compiled SDL
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS))
|
||||||
|
|
||||||
.PHONY: clean debug release
|
.PHONY: clean debug release
|
||||||
|
|
||||||
DEFAULT_TARGET := fitzquake.exe
|
DEFAULT_TARGET := quakespasm.exe
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# rules
|
# rules
|
||||||
|
@ -74,7 +74,7 @@ DEFAULT_TARGET := fitzquake.exe
|
||||||
$(WINDRES) --output-format=coff -I../Windows -o $@ $^
|
$(WINDRES) --output-format=coff -I../Windows -o $@ $^
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# FitzQuake SDL objects
|
# objects
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
OBJS := \
|
OBJS := \
|
||||||
|
@ -92,11 +92,11 @@ common.o gl_rlight.o host_cmd.o net_loop.o r_brush.o sv_main.o Fitz
|
||||||
# build rules for mingw :
|
# build rules for mingw :
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
fitzquake.exe: $(OBJS)
|
quakespasm.exe: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o fitzquake.exe $(OBJS) $(SDL_LFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) -o quakespasm.exe $(OBJS) $(SDL_LFLAGS) $(LIBS)
|
||||||
$(STRIP_CMD) fitzquake.exe
|
$(STRIP_CMD) quakespasm.exe
|
||||||
|
|
||||||
release: fitzquake.exe
|
release: quakespasm.exe
|
||||||
debug:
|
debug:
|
||||||
$(error Use "make DEBUG=1")
|
$(error Use "make DEBUG=1")
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# GNU Makefile for cross-compiling fitzquake.exe (Win64 : MinGW-w64)
|
# GNU Makefile for cross-compiling quakespasm.exe (Win64 : MinGW-w64)
|
||||||
# using cross-toolchains on a linux host / Feb. 17, 2010
|
# using cross-toolchains on a linux host / Feb. 18, 2010.
|
||||||
# "make DEBUG=1" builds debug client
|
# "make DEBUG=1" builds debug client
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for sdl-config from cross-compiled SDL
|
# "make SDL_CONFIG=/path/to/sdl-config" for sdl-config from cross-compiled SDL
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS))
|
||||||
|
|
||||||
.PHONY: clean debug release
|
.PHONY: clean debug release
|
||||||
|
|
||||||
DEFAULT_TARGET := fitzquake.exe
|
DEFAULT_TARGET := quakespasm.exe
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# rules
|
# rules
|
||||||
|
@ -74,7 +74,7 @@ DEFAULT_TARGET := fitzquake.exe
|
||||||
$(WINDRES) --output-format=coff -I../Windows -o $@ $^
|
$(WINDRES) --output-format=coff -I../Windows -o $@ $^
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# FitzQuake SDL objects
|
# objects
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
OBJS := \
|
OBJS := \
|
||||||
|
@ -89,14 +89,14 @@ cmd.o gl_refrag.o gl_warp.o net_dgrm.o r_alias.o snd_sdl.o zone
|
||||||
common.o gl_rlight.o host_cmd.o net_loop.o r_brush.o sv_main.o Fitzquake.res
|
common.o gl_rlight.o host_cmd.o net_loop.o r_brush.o sv_main.o Fitzquake.res
|
||||||
|
|
||||||
# ------------------------
|
# ------------------------
|
||||||
# build rules for mingw :
|
# build rules for mingw-w64 :
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
fitzquake.exe: $(OBJS)
|
quakespasm.exe: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o fitzquake.exe $(OBJS) $(SDL_LFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) -o quakespasm.exe $(OBJS) $(SDL_LFLAGS) $(LIBS)
|
||||||
$(STRIP_CMD) fitzquake.exe
|
$(STRIP_CMD) quakespasm.exe
|
||||||
|
|
||||||
release: fitzquake.exe
|
release: quakespasm.exe
|
||||||
debug:
|
debug:
|
||||||
$(error Use "make DEBUG=1")
|
$(error Use "make DEBUG=1")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue