mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-12 12:51:44 +00:00
Makefiles update: Passing the libraries to the linker before passing the
object list is a bad idea. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@556 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
3760bbf494
commit
02c18a64e3
4 changed files with 12 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
||||||
### GNU Makefile for QuakeSpasm unix targets, Aug. 27, 2011
|
### GNU Makefile for QuakeSpasm unix targets, Dec. 27, 2011
|
||||||
#
|
#
|
||||||
# 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.
|
||||||
|
@ -108,7 +108,7 @@ endif
|
||||||
|
|
||||||
SDL_CONFIG ?= sdl-config
|
SDL_CONFIG ?= sdl-config
|
||||||
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||||
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
|
||||||
|
|
||||||
ifeq ($(SDLNET),1)
|
ifeq ($(SDLNET),1)
|
||||||
NET_LIBS :=-lSDL_net
|
NET_LIBS :=-lSDL_net
|
||||||
|
@ -271,7 +271,7 @@ OBJS := \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm: $(OBJS)
|
quakespasm: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o quakespasm $(OBJS) $(X11_LFLAGS) $(SDL_LFLAGS) $(LIBS)
|
$(CC) $(OBJS) $(X11_LFLAGS) $(LIBS) $(SDL_LIBS) -o $@
|
||||||
$(call do_strip,$@)
|
$(call do_strip,$@)
|
||||||
|
|
||||||
release: quakespasm
|
release: quakespasm
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
### GNU Makefile for QuakeSpasm for Darwin, Aug. 27, 2011
|
### GNU Makefile for QuakeSpasm for Darwin, Dec. 27, 2011
|
||||||
|
|
||||||
# Usage: "make -f Makefile.darwin"
|
# Usage: "make -f Makefile.darwin"
|
||||||
#
|
#
|
||||||
|
@ -130,7 +130,7 @@ endif
|
||||||
#SDL_CONFIG ?= sdl-config
|
#SDL_CONFIG ?= sdl-config
|
||||||
SDL_CONFIG=/usr/local/bin/sdl-config
|
SDL_CONFIG=/usr/local/bin/sdl-config
|
||||||
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||||
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
|
||||||
|
|
||||||
ifeq ($(SDLNET),1)
|
ifeq ($(SDLNET),1)
|
||||||
NET_LIBS :=-L/usr/local/lib -l SDL_net
|
NET_LIBS :=-L/usr/local/lib -l SDL_net
|
||||||
|
@ -297,7 +297,7 @@ OBJS := \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm: $(OBJS)
|
quakespasm: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o quakespasm $(OBJS) $(X11_LFLAGS) $(SDL_LFLAGS) -L../MacOSX $(LIBS)
|
$(CC) $(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 / Aug. 27, 2011.
|
# using cross-toolchains on a linux host / Dec. 27, 2011.
|
||||||
# "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.
|
||||||
|
@ -76,7 +76,7 @@ endif
|
||||||
|
|
||||||
SDL_CONFIG ?= sdl-config
|
SDL_CONFIG ?= sdl-config
|
||||||
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||||
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
|
||||||
|
|
||||||
ifeq ($(WINSOCK2),1)
|
ifeq ($(WINSOCK2),1)
|
||||||
DEFWINSOCK :=-D_USE_WINSOCK2
|
DEFWINSOCK :=-D_USE_WINSOCK2
|
||||||
|
@ -257,7 +257,7 @@ OBJS := \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm.exe: $(OBJS)
|
quakespasm.exe: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o quakespasm.exe $(OBJS) $(SDL_LFLAGS) $(LIBS)
|
$(CC) $(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 / Aug. 27, 2011.
|
# using cross-toolchains on a linux host / Dec. 27, 2011.
|
||||||
# "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).
|
||||||
|
@ -76,7 +76,7 @@ endif
|
||||||
|
|
||||||
SDL_CONFIG ?= sdl-config
|
SDL_CONFIG ?= sdl-config
|
||||||
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||||
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
|
||||||
|
|
||||||
ifeq ($(WINSOCK2),1)
|
ifeq ($(WINSOCK2),1)
|
||||||
DEFWINSOCK :=-D_USE_WINSOCK2
|
DEFWINSOCK :=-D_USE_WINSOCK2
|
||||||
|
@ -257,7 +257,7 @@ OBJS := \
|
||||||
# ------------------------
|
# ------------------------
|
||||||
|
|
||||||
quakespasm.exe: $(OBJS)
|
quakespasm.exe: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o quakespasm.exe $(OBJS) $(SDL_LFLAGS) $(LIBS)
|
$(CC) $(CFLAGS) $(OBJS) $(LIBS) $(SDL_LIBS) -o $@
|
||||||
$(call do_strip,$@)
|
$(call do_strip,$@)
|
||||||
|
|
||||||
release: quakespasm.exe
|
release: quakespasm.exe
|
||||||
|
|
Loading…
Reference in a new issue