mirror of
https://github.com/yquake2/ctf.git
synced 2025-02-16 17:21:14 +00:00
Add support for OS X to the Makefile
This commit is contained in:
parent
2dba62f553
commit
498f682480
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -57,13 +57,22 @@ endif
|
||||||
# -fPIC for position independend code.
|
# -fPIC for position independend code.
|
||||||
#
|
#
|
||||||
# -MMD to generate header dependencies.
|
# -MMD to generate header dependencies.
|
||||||
|
ifeq ($(OSTYPE), Darwin)
|
||||||
|
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||||
|
-Wall -pipe -g -arch i386 -arch x86_64
|
||||||
|
else
|
||||||
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||||
-Wall -pipe -g -MMD
|
-Wall -pipe -g -MMD
|
||||||
|
endif
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# Base LDFLAGS.
|
# Base LDFLAGS.
|
||||||
|
ifeq ($(OSTYPE), Darwin)
|
||||||
|
LDFLAGS := -shared -arch i386 -arch x86_64
|
||||||
|
else
|
||||||
LDFLAGS := -shared
|
LDFLAGS := -shared
|
||||||
|
endif
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue