X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/Makefile diff --git a/Makefile b/Makefile index c4c0663ef..38cb74935 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,7 @@ TOP_TARGETS = \ install install_desktop install_embedded \ install_release_embedded install_development_embedded \ installopensource \ - cscope tags TAGS reindent \ + cscope tags TAGS checkstyle restyle check_uncrustify uncrustify \ help DEFAULT_TARGET = all @@ -196,16 +196,17 @@ include $(MakeInc_cmd) include $(MakeInc_def) ALL_SUBDIRS = \ + security \ bsd \ iokit \ osfmk \ pexpert \ libkern \ libsa \ - security \ - config + config \ + san -CONFIG_SUBDIRS = config tools +CONFIG_SUBDIRS = config tools san INSTINC_SUBDIRS = $(ALL_SUBDIRS) EXTERNAL_HEADERS INSTINC_SUBDIRS_X86_64 = $(INSTINC_SUBDIRS) @@ -219,7 +220,7 @@ EXPINC_SUBDIRS_X86_64H = $(EXPINC_SUBDIRS) EXPINC_SUBDIRS_ARM = $(EXPINC_SUBDIRS) EXPINC_SUBDIRS_ARM64 = $(EXPINC_SUBDIRS) -SETUP_SUBDIRS = SETUP +SETUP_SUBDIRS = SETUP osfmk san COMP_SUBDIRS_X86_64 = $(ALL_SUBDIRS) COMP_SUBDIRS_X86_64H = $(ALL_SUBDIRS) @@ -237,9 +238,29 @@ endif # CURRENT_BUILD_CONFIG endif # all other RC_ProjectName -installhdrs_libkdd install_libkdd: +installapi_libkdd installhdrs_libkdd install_libkdd: + cd libkdd; \ + xcodebuild -target Default $(subst _libkdd,,$@) \ + "SRCROOT=$(SRCROOT)/libkdd" \ + "OBJROOT=$(OBJROOT)" \ + "SYMROOT=$(SYMROOT)" \ + "DSTROOT=$(DSTROOT)" \ + "SDKROOT=$(SDKROOT)" + + +installapi_libkdd_tests installhdrs_libkdd_tests install_libkdd_tests: + cd libkdd; \ + xcodebuild -target tests $(subst _libkdd_tests,,$@) \ + "SRCROOT=$(SRCROOT)/libkdd" \ + "OBJROOT=$(OBJROOT)" \ + "SYMROOT=$(SYMROOT)" \ + "DSTROOT=$(DSTROOT)" \ + "SDKROOT=$(SDKROOT)" + + +installapi_libkdd_host installhdrs_libkdd_host install_libkdd_host: cd libkdd; \ - xcodebuild -target libkdd $(subst _libkdd,,$@) \ + xcodebuild -configuration ReleaseHost -target kdd.framework $(subst _libkdd_host,,$@) \ "SRCROOT=$(SRCROOT)/libkdd" \ "OBJROOT=$(OBJROOT)" \ "SYMROOT=$(SYMROOT)" \ @@ -254,3 +275,5 @@ installhdrs_libkdd install_libkdd: xnu_tests: $(MAKE) -C $(SRCROOT)/tools/tests $(if $(filter -j,$(MAKEFLAGS)),,$(MAKEJOBS)) \ SRCROOT=$(SRCROOT)/tools/tests + $(MAKE) -C $(SRCROOT)/tests $(if $(filter -j,$(MAKEFLAGS)),,$(MAKEJOBS)) \ + SRCROOT=$(SRCROOT)/tests