3 include $(SRCDIR)/config/aros.cfg
5 #MM kernel-hidd-uikit: kernel-hidd-uikit-native
6 #MM kernel-hidd-uikit-quick: kernel-hidd-uikit-native
7 #MM kernel-hidd-uikit-kobj: kernel-hidd-uikit-native
8 #MM kernel-hidd-uikit-kobj-quick: kernel-hidd-uikit-native
10 FILES := gfxclass bitmapclass eventtask startup
12 %build_module mmake=kernel-hidd-uikit \
13 modname=uikit modtype=hidd \
14 files=$(FILES) uselibs="hiddstubs"
16 NATIVE_BINDIR := $(AROSDIR)/Libs/Host
17 NATIVE_OBJDIR := $(GENDIR)/$(CURDIR)
19 NATIVE_FILES := native_api alertdelegate displaycontroller displaywindow
20 NATIVE_LIBNAME := uikit_hidd.dylib
22 NATIVE_LDFLAGS := $(IOS_LDFLAGS) -framework CoreGraphics -framework Foundation -framework UIKit -shared
24 OBJS := $(addsuffix .o,$(addprefix $(NATIVE_OBJDIR)/,$(notdir $(NATIVE_FILES))))
25 DEPS := $(addsuffix .d,$(addprefix $(NATIVE_OBJDIR)/,$(notdir $(NATIVE_FILES))))
28 kernel-hidd-uikit-native : $(NATIVE_BINDIR) $(NATIVE_BINDIR)/$(NATIVE_LIBNAME)
31 @$(MKDIR) $(NATIVE_BINDIR)
34 %compile_q cmd=$(KERNEL_CC) opt="$(CFLAGS) $(KERNEL_CFLAGS) $(KERNEL_OBJCFLAGS) $(IOS_CFLAGS)"
37 %mkdepend_q cc=$(KERNEL_CC) flags="$(CFLAGS) $(IOS_CFLAGS)"
39 BD_STRIP := $(ECHO) >/dev/null
41 %rule_link_prog prog=$(NATIVE_BINDIR)/$(NATIVE_LIBNAME) \
42 objs="$(OBJS)" ldflags="$(LDFLAGS) $(NATIVE_LDFLAGS)" \
43 cmd=$(KERNEL_CC) strip="$(BD_STRIP)"
45 %include_deps depstargets="kernel-hidd-uikit-native" deps=$(DEPS)