mirror of
https://github.com/darlinghq/darling-architecture.git
synced 2024-11-26 22:10:22 +00:00
Merge pull request #2 from darlinghq/update_sources_11.5
Update Sources 11.5 - architecture
This commit is contained in:
commit
63162c4744
94
Makefile
Normal file
94
Makefile
Normal file
@ -0,0 +1,94 @@
|
||||
#
|
||||
# makefile for architecture project.
|
||||
#
|
||||
|
||||
# Defaults typically set by build system
|
||||
|
||||
DEFAULT_ARCHS = i386
|
||||
DEFAULT_ARCHS += arm
|
||||
|
||||
RC_ARCHS ?= $(DEFAULT_ARCHS)
|
||||
|
||||
SDKROOT ?= /
|
||||
|
||||
# map x86_64 -> i386
|
||||
SUPPORTED_ARCHS = i386
|
||||
CANONICAL_ARCH_x86_64 = i386
|
||||
|
||||
# fold all arm subtypes to the family "arm",
|
||||
# and map arm64 -> arm
|
||||
#
|
||||
SUPPORTED_ARCHS += arm
|
||||
|
||||
CANONICAL_ARCH_arm64 = arm
|
||||
CANONICAL_ARCH_arm64e = arm
|
||||
CANONICAL_ARCH_arm64_32 = arm
|
||||
CANONICAL_ARCH_armv5 = arm
|
||||
CANONICAL_ARCH_armv6 = arm
|
||||
CANONICAL_ARCH_armv7 = arm
|
||||
CANONICAL_ARCH_armv7k = arm
|
||||
|
||||
ARCHS = $(filter $(SUPPORTED_ARCHS),$(sort $(foreach x,$(RC_ARCHS),$(if $(CANONICAL_ARCH_$(x)),$(CANONICAL_ARCH_$(x)),$(x)))))
|
||||
|
||||
# install machine-independent and per-arch headers
|
||||
DIRS = . $(ARCHS)
|
||||
|
||||
ifeq ($(DRIVERKIT),1)
|
||||
override DSTROOT := $(DSTROOT)/$(DRIVERKITROOT)/Runtime
|
||||
endif
|
||||
|
||||
EXPORT_DSTDIR=/usr/include/architecture
|
||||
LOCAL_DSTDIR=/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/architecture
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
INSTALL_FLAGS= -p -m 444
|
||||
MKDIRS = /bin/mkdir -p
|
||||
|
||||
all:
|
||||
|
||||
install: all installhdrs
|
||||
|
||||
copyhdrs: all DSTROOT $(DSTROOT)$(LOCAL_DSTDIR) \
|
||||
$(DSTROOT)$(EXPORT_DSTDIR)
|
||||
for i in ${DIRS}; \
|
||||
do \
|
||||
DSTDIR=$(DSTROOT)$(LOCAL_DSTDIR)/$$i; \
|
||||
(cd $$i; \
|
||||
$(MKDIRS) $$DSTDIR; \
|
||||
echo Installing *.h; \
|
||||
install $(INSTALL_FLAGS) *.h $$DSTDIR); \
|
||||
done
|
||||
for i in ${DIRS}; \
|
||||
do \
|
||||
DSTDIR=$(DSTROOT)$(EXPORT_DSTDIR)/$$i; \
|
||||
(cd $$i; \
|
||||
$(MKDIRS) $$DSTDIR; \
|
||||
echo Installing *.h; \
|
||||
install $(INSTALL_FLAGS) *.h $$DSTDIR); \
|
||||
done
|
||||
|
||||
installhdrs: copyhdrs
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f *~ */*~
|
||||
rm -rf exports
|
||||
|
||||
installsrc: SRCROOT $(SRCROOT)
|
||||
pax -rw . ${SRCROOT}
|
||||
|
||||
|
||||
$(SRCROOT) $(DSTROOT)$(EXPORT_DSTDIR) $(DSTROOT)$(LOCAL_DSTDIR):
|
||||
$(MKDIRS) $@
|
||||
|
||||
.PHONY: SRCROOT DSTROOT
|
||||
|
||||
SRCROOT DSTROOT:
|
||||
if [ -n "${$@}" ]; \
|
||||
then \
|
||||
exit 0; \
|
||||
else \
|
||||
echo Must define $@; \
|
||||
exit 1; \
|
||||
fi
|
9
README.md
Normal file
9
README.md
Normal file
@ -0,0 +1,9 @@
|
||||
# darling-architecture
|
||||
|
||||
## Upstream URL
|
||||
|
||||
https://github.com/apple-oss-distributions/architecture/tree/architecture-279
|
||||
|
||||
## Updating Source
|
||||
|
||||
When updating the source code, make sure to refer to the [`Updating Sources`](https://docs.darlinghq.org/contributing/updating-sources/index.html#updating-sources) section from the Darling Docs website. Additional details (if any) can be found in [`darling/notes/UPDATE_SOURCE.md`](darling/notes/UPDATE_SOURCE.md).
|
Loading…
Reference in New Issue
Block a user