32 lines
977 B
Makefile
Executable File
32 lines
977 B
Makefile
Executable File
###################################
|
|
# License: Modified MIT (NON-AI)
|
|
# Copyright 2025 Timothy Prepscius
|
|
# See the LICENSE file in the root directory for license information.
|
|
###################################
|
|
|
|
ifeq (LLVM,$(SYS_NAME))
|
|
DEVELOPER := /Applications/Xcode.app/Contents/Developer
|
|
DEVDIR := $(DEVELOPER)/Platforms/iPhoneOS.platform/Developer
|
|
|
|
AR := ar
|
|
CC := clang
|
|
CPP := clang++
|
|
MM := clang
|
|
M := clang
|
|
LINK := clang
|
|
CPPFLAGS += -stdlib=libc++
|
|
MMFLAGS += -stdlib=libc++
|
|
MFLAGS += -stdlib=libc++
|
|
_FLAGS += -Wno-null-conversion -Wno-extra-tokens -Wno-int-to-void-pointer-cast -Wno-deprecated-register
|
|
|
|
_FLAGS += -Wno-import
|
|
# _FLAGS += -Werror
|
|
# _FLAGS += -arch armv6
|
|
_FLAGS += -mthumb
|
|
_FLAGS += -isysroot $(DEVELOPER)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
|
|
_FLAGS += -miphoneos-version-min=11.0
|
|
_FLAGS += -DSYS_LLVM
|
|
|
|
_FLAGS += -emit-llvm -target le32-unknown-nacl
|
|
endif
|