aboutsummaryrefslogtreecommitdiff
path: root/config-osx.mak
blob: f8c5318cf4d759f3fc1ab479a98904b3a7b43a1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Shave and a Haircut
# (c) 2019 Epic Games
# US Patent 6720962

#  This file should be included in all of our OS X makefiles

ifndef DEVELOPER_DIR
    $(error DEVELOPER_DIR not defined. Did you source getosxvars.sh first?)
endif

CFLAGS =
C++FLAGS =
LDFLAGS =
LFLAGS=
CC = gcc
C++ = g++
LD = g++

#  Starting with OS 10.9 (Mavericks) the standard c++ library is libc++ not
#  libstdc++. Maya plugins still require the latter, so we must explicitly
#  specify it.
#
ifeq ($(shell echo "$(MACOSX_DEPLOYMENT_TARGET) >= 10.9" | bc),1)
  C++FLAGS = -stdlib=libstdc++
  LDFLAGS = -stdlib=libstdc++
endif

#  Some Makefiles use LFLAGS rather than LDFLAGS.
#
LFLAGS = $(LDFLAGS)