2 include $(TOP)/config/make.cfg
4 EXEDIR := $(TARGETDIR)/Payload/AROSBootstrap.app
5 OBJDIR := $(GENDIR)/arch/all-hosted/bootstrap/arch
8 OBJCFILES := main appdelegate filesystem ui
9 ICON := arch/all-hosted/hidd/x11/icon.png
10 PACKAGE := AROSBootstrap.ipa
11 USER_INCLUDES := -I$(SRCDIR)/arch/all-hosted/bootstrap -isystem $(SRCDIR)/bootstrap/include -isystem $(GENINCDIR)
13 #MM- kernel-bootstrap-package-ios: kernel-bootstrap-hosted kernel-bootstrap-package-ios-quick
14 #MM- kernel-bootstrap-package-ios-signed: kernel-bootstrap-codesign-ios kernel-bootstrap-package-ios-quick
15 #MM kernel-bootstrap-hosted-darwin-ios: kernel-bootstrap-bundle-ios
17 OBJS := $(addsuffix .o,$(addprefix $(OBJDIR)/,$(notdir $(FILES) $(OBJCFILES))))
18 DEPS := $(addsuffix .d,$(addprefix $(OBJDIR)/,$(notdir $(FILES) $(OBJCFILES))))
21 kernel-bootstrap-hosted-darwin-ios :: $(OBJS) $(DEPS)
23 kernel-bootstrap-hosted-darwin-ios-quick :: $(OBJS) $(DEPS)
26 %rule_compile basename=% targetdir=$(OBJDIR) \
27 cflags="$(CFLAGS) $(IOS_CFLAGS)" dflags="$(CFLAGS) $(IOS_CFLAGS)" compiler=kernel
30 %compile_q cmd=$(KERNEL_CC) opt="$(CFLAGS) $(KERNEL_CFLAGS) $(KERNEL_OBJCFLAGS) $(IOS_CFLAGS)"
33 %mkdepend_q cc=$(KERNEL_CC) flags="$(CFLAGS) $(KERNEL_OBJCFLAGS) $(IOS_CFLAGS)"
35 %include_deps depstargets="kernel-bootstrap-hosted-darwin-ios kernel-bootstrap-hosted-darwin-ios-quick" deps=$(DEPS)
38 kernel-bootstrap-bundle-ios:
40 @$(RM) $(EXEDIR)/CodeResources $(EXEDIR)/_CodeSignature $(EXEDIR)/embedded.mobileprovision
41 @$(ECHO) Making property list...
42 @$(SRCDIR)/$(CURDIR)/mkplist.sh $(SRCDIR)/$(CURDIR) >$(EXEDIR)/Info.plist
43 @if [ -f $(IOS_SDK_PATH)/ResourceRules.plist ]; then \
44 $(ECHO) Writing resource rules... ;\
45 $(CP) -f $(IOS_SDK_PATH)/ResourceRules.plist $(EXEDIR)/ ;\
47 @$(ECHO) Writing PkgInfo...
48 @$(CP) -f $(SRCDIR)/$(CURDIR)/PkgInfo $(SRCDIR)/$(ICON) $(EXEDIR)/
51 kernel-bootstrap-codesign-ios:
52 @cd $(SRCDIR)/$(CURDIR); ./appsign.sh $(EXEDIR)
55 kernel-bootstrap-package-ios-quick:
56 @$(ECHO) Building package...
57 @cd $(TARGETDIR); $(RM) $(PACKAGE); zip -ry $(PACKAGE) Payload