summaryrefslogtreecommitdiff
path: root/packages/libndsfpc/examples/graphics/3D/nehe/Makefile
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-05 15:39:07 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-05 15:39:07 +0000
commite3f2bd1ac7270a5ffdea008743eba282151b232a (patch)
tree0a965e552ed9a088c8626a36cb47b0307a1721f2 /packages/libndsfpc/examples/graphics/3D/nehe/Makefile
parent7a95cb4f41ec51b4eda59f5f4b96c1d4713dfa24 (diff)
downloadfpc-e3f2bd1ac7270a5ffdea008743eba282151b232a.tar.gz
* Makefiles regenerated
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@49124 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/libndsfpc/examples/graphics/3D/nehe/Makefile')
-rw-r--r--packages/libndsfpc/examples/graphics/3D/nehe/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/libndsfpc/examples/graphics/3D/nehe/Makefile b/packages/libndsfpc/examples/graphics/3D/nehe/Makefile
index 9d2c9ed96a..aebb839101 100644
--- a/packages/libndsfpc/examples/graphics/3D/nehe/Makefile
+++ b/packages/libndsfpc/examples/graphics/3D/nehe/Makefile
@@ -2739,6 +2739,19 @@ override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
endif
endif
+ifdef SYSROOTPATH
+override FPCOPT+=-XR$(SYSROOTPATH)
+else
+ifeq ($(OS_TARGET),$(OS_SOURCE))
+ifneq ($(findstring $(OS_TARGET),darwin),)
+ifneq ($(findstring $(CPU_TARGET),aarch64),)
+ifneq ($(wildcard /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk),)
+override FPCOPT+=-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+endif
+endif
+endif
+endif
+endif
ifdef CREATESHARED
override FPCOPT+=-Cg
endif