-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathtargets.device.userland.mak
23 lines (14 loc) · 1.24 KB
/
targets.device.userland.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
userland_src += $(ion_device_userland_src) $(liba_src) $(kandinsky_src) $(escher_src) $(libaxx_src) $(poincare_src) $(python_src) $(apps_src) $(omg_src)
userland_test_src += $(ion_device_userland_src) $(liba_src) $(kandinsky_src) $(escher_src) $(libaxx_src) $(poincare_src) $(python_src) $(apps_tests_src) $(omg_src) $(tests_src) $(runner_src)
# Ensure kandinsky fonts are generated first
$(call object_for,$(userland_src)): $(kandinsky_deps)
USERLAND_LDFLAGS += -Lion/src/$(PLATFORM)/userland/flash
USERLAND_LDDEPS += ion/src/$(PLATFORM)/userland/flash/userland_shared.ld
userland_target_variants = $(call add_slot_suffix, $(call target_variants_for_component,userland))
userland_targets = $(addprefix $(BUILD_DIR)/,$(addsuffix .$(EXE),$(userland_target_variants)))
HANDY_TARGETS += $(userland_target_variants)
$(foreach target,$(userland_targets),$(eval $(call flavored_dependencies_for_target,$(target),userland,consoledisplay leaveuserland)))
$(userland_targets): LDFLAGS += $(USERLAND_LDFLAGS)
$(filter %.A.$(EXE),$(userland_targets)): LDSCRIPT = ion/src/$(PLATFORM)/userland/flash/userland_A.ld
$(filter %.B.$(EXE),$(userland_targets)): LDSCRIPT = ion/src/$(PLATFORM)/userland/flash/userland_B.ld
$(userland_targets): LDDEPS += $(USERLAND_LDDEPS) $(LDSCRIPT)