mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
Makefiles: defined new variable LINKER. for linkage we no longer use $(CC),
but $(LINKER) git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@679 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
436f0f980f
commit
b3b4432138
4 changed files with 18 additions and 13 deletions
|
@ -1,5 +1,4 @@
|
||||||
### GNU Makefile for QuakeSpasm unix targets, March 09, 2012
|
# GNU Makefile for QuakeSpasm unix targets, May 30, 2012
|
||||||
#
|
|
||||||
# You need the SDL library fully installed.
|
# You need the SDL library fully installed.
|
||||||
# "make DEBUG=1" to build a debug client.
|
# "make DEBUG=1" to build a debug client.
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
||||||
|
@ -40,6 +39,8 @@ CC ?= gcc
|
||||||
WINDRES ?= windres
|
WINDRES ?= windres
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
|
|
||||||
|
LINKER = $(CC)
|
||||||
|
|
||||||
#CPUFLAGS= -mtune=i686
|
#CPUFLAGS= -mtune=i686
|
||||||
#CPUFLAGS= -march=pentium4
|
#CPUFLAGS= -march=pentium4
|
||||||
#CPUFLAGS= -mtune=k8
|
#CPUFLAGS= -mtune=k8
|
||||||
|
@ -255,7 +256,7 @@ OBJS := strlcat.o \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm: $(OBJS)
|
quakespasm: $(OBJS)
|
||||||
$(CC) $(OBJS) $(X11_LFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
$(LINKER) $(OBJS) $(X11_LFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
||||||
$(call do_strip,$@)
|
$(call do_strip,$@)
|
||||||
|
|
||||||
release: quakespasm
|
release: quakespasm
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
### GNU Makefile for QuakeSpasm for Darwin, March 09, 2012
|
# GNU Makefile for QuakeSpasm for Darwin, May 30, 2012
|
||||||
|
|
||||||
# Usage: "make -f Makefile.darwin"
|
# Usage: "make -f Makefile.darwin"
|
||||||
#
|
|
||||||
# You need the SDL library fully installed.
|
# You need the SDL library fully installed.
|
||||||
# "make DEBUG=1" to build a debug client.
|
# "make DEBUG=1" to build a debug client.
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
||||||
|
@ -58,6 +56,8 @@ CC ?= gcc
|
||||||
WINDRES ?= windres
|
WINDRES ?= windres
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
|
|
||||||
|
LINKER = $(CC)
|
||||||
|
|
||||||
#CPUFLAGS= -mtune=i686
|
#CPUFLAGS= -mtune=i686
|
||||||
#CPUFLAGS= -march=pentium4
|
#CPUFLAGS= -march=pentium4
|
||||||
#CPUFLAGS= -mtune=k8
|
#CPUFLAGS= -mtune=k8
|
||||||
|
@ -274,7 +274,7 @@ OBJS := strlcat.o \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm: $(OBJS)
|
quakespasm: $(OBJS)
|
||||||
$(CC) $(OBJS) $(X11_LFLAGS) -L../MacOSX $(LIBS) $(SDL_LIBS) -o $@
|
$(LINKER) $(OBJS) $(X11_LFLAGS) -L../MacOSX $(LIBS) $(SDL_LIBS) -o $@
|
||||||
$(call do_strip,$@)
|
$(call do_strip,$@)
|
||||||
|
|
||||||
release: quakespasm
|
release: quakespasm
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# GNU Makefile for cross-compiling quakespasm.exe (Win32: MinGW)
|
# GNU Makefile for cross-compiling quakespasm.exe (Win32: MinGW)
|
||||||
# using cross-toolchains on a linux host / March 09, 2012
|
# using cross-toolchains on a linux host, May 30, 2012
|
||||||
# "make DEBUG=1" to build a debug client.
|
# "make DEBUG=1" to build a debug client.
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
||||||
# "make WINSOCK2=1" to use WinSock2 api instead of old WinSock 1.1.
|
# "make WINSOCK2=1" to use WinSock2 api instead of old WinSock 1.1.
|
||||||
|
@ -49,6 +49,8 @@ CC = $(TOOLCHAIN_PREFIX)gcc
|
||||||
WINDRES = $(TOOLCHAIN_PREFIX)windres
|
WINDRES = $(TOOLCHAIN_PREFIX)windres
|
||||||
STRIP = $(TOOLCHAIN_PREFIX)strip
|
STRIP = $(TOOLCHAIN_PREFIX)strip
|
||||||
|
|
||||||
|
LINKER = $(CC)
|
||||||
|
|
||||||
#CPUFLAGS= -mtune=i686
|
#CPUFLAGS= -mtune=i686
|
||||||
#CPUFLAGS= -march=pentium4
|
#CPUFLAGS= -march=pentium4
|
||||||
CPUFLAGS=
|
CPUFLAGS=
|
||||||
|
@ -256,7 +258,7 @@ OBJS := strlcat.o \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm.exe: $(OBJS)
|
quakespasm.exe: $(OBJS)
|
||||||
$(CC) $(OBJS) $(LIBS) $(SDL_LIBS) -o $@
|
$(LINKER) $(OBJS) $(LIBS) $(SDL_LIBS) -o $@
|
||||||
$(call do_strip,$@)
|
$(call do_strip,$@)
|
||||||
|
|
||||||
release: quakespasm.exe
|
release: quakespasm.exe
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# GNU Makefile for cross-compiling quakespasm.exe (Win64: MinGW-w64)
|
# GNU Makefile for cross-compiling quakespasm.exe (Win64: MinGW-w64)
|
||||||
# using cross-toolchains on a linux host / March 09, 2012
|
# using cross-toolchains on a linux host, May 30, 2012
|
||||||
# "make DEBUG=1" to build a debug client.
|
# "make DEBUG=1" to build a debug client.
|
||||||
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
# "make SDL_CONFIG=/path/to/sdl-config" for unusual SDL installations.
|
||||||
# "make WINSOCK2=0" to use the old WinSock 1.1 api (NOT recommended).
|
# "make WINSOCK2=0" to use the old WinSock 1.1 api (NOT recommended).
|
||||||
|
@ -49,6 +49,8 @@ CC = $(TOOLCHAIN_PREFIX)gcc
|
||||||
WINDRES = $(TOOLCHAIN_PREFIX)windres
|
WINDRES = $(TOOLCHAIN_PREFIX)windres
|
||||||
STRIP = $(TOOLCHAIN_PREFIX)strip
|
STRIP = $(TOOLCHAIN_PREFIX)strip
|
||||||
|
|
||||||
|
LINKER = $(CC)
|
||||||
|
|
||||||
#CPUFLAGS= -mtune=k8
|
#CPUFLAGS= -mtune=k8
|
||||||
#CPUFLAGS= -march=atom
|
#CPUFLAGS= -march=atom
|
||||||
CPUFLAGS=
|
CPUFLAGS=
|
||||||
|
@ -256,7 +258,7 @@ OBJS := strlcat.o \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm.exe: $(OBJS)
|
quakespasm.exe: $(OBJS)
|
||||||
$(CC) $(OBJS) $(LIBS) $(SDL_LIBS) -o $@
|
$(LINKER) $(OBJS) $(LIBS) $(SDL_LIBS) -o $@
|
||||||
$(call do_strip,$@)
|
$(call do_strip,$@)
|
||||||
|
|
||||||
release: quakespasm.exe
|
release: quakespasm.exe
|
||||||
|
|
Loading…
Reference in a new issue