mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[scripts] Enable to call "makefile PLATFORM=emscripten simulator.zip"
without precising the building directory
This commit is contained in:
4
Makefile
4
Makefile
@@ -82,6 +82,8 @@ all_objs = $(call object_for,$(all_src))
|
||||
|
||||
executables = epsilon epsilon.on-boarding epsilon.on-boarding.update epsilon.on-boarding.beta test
|
||||
|
||||
extensions = $(EXE)
|
||||
|
||||
#define platform generic targets
|
||||
all_epsilon_common_src = $(ion_src) $(liba_src) $(kandinsky_src) $(epsilon_src) $(app_src) $(escher_src) $(libaxx_src) $(poincare_src) $(python_src) $(ion_device_dfu_relocated_src)
|
||||
all_epsilon_default_src = $(all_epsilon_common_src) $(apps_launch_default_src) $(apps_prompt_none_src)
|
||||
@@ -97,7 +99,7 @@ $(BUILD_DIR)/test.$(EXE): $(BUILD_DIR)/quiz/src/tests_symbols.o $(call object_fo
|
||||
# We include them before the standard ones to give them precedence.
|
||||
-include scripts/targets.$(PLATFORM).mak
|
||||
|
||||
$(foreach executable,$(executables),$(eval $(call rules_for_targets,$(executable),$(EXE))))
|
||||
$(foreach extension,$(extensions),$(foreach executable,$(executables),$(eval $(call rules_for_targets,$(executable),$(extension)))))
|
||||
|
||||
# Define standard compilation rules
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
include scripts/targets.device.$(MODEL).mak
|
||||
|
||||
executables += flasher.light flasher.verbose bench.ram bench.flash
|
||||
extensions = dfu hex bin
|
||||
|
||||
$(foreach extension,$(extensions),$(foreach executable,$(executables),$(eval $(call rules_for_targets,$(executable),$(extension)))))
|
||||
extensions += dfu hex bin
|
||||
|
||||
$(BUILD_DIR)/%.dfu: $(BUILD_DIR)/%.$(EXE)
|
||||
@echo "DFUSE $@"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
executables += epsilon.packed simulator
|
||||
extensions += zip
|
||||
|
||||
$(BUILD_DIR)/epsilon.packed.js: LDFLAGS += --memory-init-file 0
|
||||
$(BUILD_DIR)/epsilon.packed.js: $(call object_for,$(all_epsilon_default_src))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user