mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-10 06:31:34 +00:00
Fixed macos building.
This commit is contained in:
parent
cf0471a367
commit
d209850ef7
1 changed files with 4 additions and 3 deletions
7
Makefile
Normal file → Executable file
7
Makefile
Normal file → Executable file
|
@ -67,7 +67,7 @@ endif
|
|||
# -MMD to generate header dependencies.
|
||||
ifeq ($(OSTYPE), Darwin)
|
||||
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||
-Wall -pipe -g -fwrapv -arch i386 -arch x86_64
|
||||
-Wall -pipe -g -fwrapv -arch x86_64
|
||||
else
|
||||
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||
-Wall -pipe -g -MMD -fwrapv
|
||||
|
@ -93,7 +93,7 @@ endif
|
|||
|
||||
# Base LDFLAGS.
|
||||
ifeq ($(OSTYPE), Darwin)
|
||||
LDFLAGS := -shared -arch i386 -arch x86_64
|
||||
LDFLAGS := -shared -arch x86_64
|
||||
else ifeq ($(OSTYPE), Windows)
|
||||
LDFLAGS := -shared -static-libgcc
|
||||
else
|
||||
|
@ -144,7 +144,7 @@ ctf:
|
|||
$(Q)mkdir -p release
|
||||
$(MAKE) release/game.dll
|
||||
else ifeq ($(OSTYPE), Darwin)
|
||||
rogue:
|
||||
ctf:
|
||||
@echo "===> Building game.dylib"
|
||||
${Q}mkdir -p release
|
||||
$(MAKE) release/game.dylib
|
||||
|
@ -213,6 +213,7 @@ ifeq ($(OSTYPE), Windows)
|
|||
release/game.dll : $(CTF_OBJS)
|
||||
@echo "===> LD $@"
|
||||
$(Q)$(CC) $(LDFLAGS) -o $@ $(CTF_OBJS)
|
||||
else ifeq ($(OSTYPE), Darwin)
|
||||
release/game.dylib : $(CTF_OBJS)
|
||||
@echo "===> LD $@"
|
||||
${Q}$(CC) $(LDFLAGS) -o $@ $(CTF_OBJS)
|
||||
|
|
Loading…
Reference in a new issue