mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 14:01:26 +00:00
miscellaneous makefile updates
This commit is contained in:
parent
169ec72d0e
commit
86b0065d0b
4 changed files with 2 additions and 16 deletions
|
@ -48,10 +48,6 @@ LINKER = $(CC)
|
|||
STRIP ?= strip
|
||||
PKG_CONFIG ?= pkg-config
|
||||
|
||||
#CPUFLAGS= -mtune=i686
|
||||
#CPUFLAGS= -march=pentium4
|
||||
#CPUFLAGS= -mtune=k8
|
||||
#CPUFLAGS= -march=atom
|
||||
CPUFLAGS=
|
||||
LDFLAGS =
|
||||
DFLAGS ?=
|
||||
|
|
|
@ -36,7 +36,6 @@ check_gcc = $(shell if echo | $(CC) $(1) -Werror -S -o /dev/null -xc - > /dev/nu
|
|||
|
||||
# ---------------------------
|
||||
|
||||
HOST_OS := $(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]')
|
||||
MACH_TYPE= $(shell sh detect.sh arch)
|
||||
|
||||
DEBUG ?= 0
|
||||
|
|
|
@ -45,10 +45,8 @@ WINDRES = windres
|
|||
|
||||
STRIP = strip
|
||||
|
||||
#CPUFLAGS= -mtune=i686
|
||||
#CPUFLAGS= -march=pentium4
|
||||
CPUFLAGS=
|
||||
LDFLAGS = -m32 -mwindows
|
||||
LDFLAGS = -m32 -mwindows -static-libgcc
|
||||
DFLAGS ?=
|
||||
CFLAGS ?= -m32 -Wall -Wno-trigraphs
|
||||
CFLAGS += $(CPUFLAGS)
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# To cross-compile on Linux hosts, see the build_cross_win32*.sh scripts.
|
||||
# "make DEBUG=1" to build a debug client.
|
||||
# "make SDL_CONFIG=/path/to/sdl-config" to override the locally included SDL versions.
|
||||
# "make WINSOCK2=0" to use the old WinSock 1.1 api (NOT RECOMMENDED)
|
||||
|
||||
### Enable/disable SDL2
|
||||
USE_SDL2=0
|
||||
|
@ -33,7 +32,6 @@ check_gcc = $(shell if echo | $(CC) $(1) -Werror -S -o /dev/null -xc - > /dev/nu
|
|||
# ---------------------------
|
||||
|
||||
DEBUG ?= 0
|
||||
WINSOCK2?= 1
|
||||
|
||||
# ---------------------------
|
||||
# build variables
|
||||
|
@ -46,7 +44,7 @@ WINDRES = windres
|
|||
STRIP = strip
|
||||
|
||||
CPUFLAGS=
|
||||
LDFLAGS = -m64 -mwindows
|
||||
LDFLAGS = -m64 -mwindows -static-libgcc
|
||||
DFLAGS ?=
|
||||
CFLAGS ?= -m64 -Wall -Wno-trigraphs
|
||||
CFLAGS += $(CPUFLAGS)
|
||||
|
@ -79,13 +77,8 @@ endif
|
|||
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
|
||||
|
||||
ifeq ($(WINSOCK2),1)
|
||||
DEFWINSOCK :=-D_USE_WINSOCK2
|
||||
LIBWINSOCK := -lws2_32
|
||||
else
|
||||
DEFWINSOCK :=
|
||||
LIBWINSOCK := -lwsock32
|
||||
endif
|
||||
|
||||
CFLAGS += $(DEFWINSOCK)
|
||||
NET_LIBS := $(LIBWINSOCK)
|
||||
|
|
Loading…
Reference in a new issue