PKGS = balance blacktip_dpv refloat tnt vbms32 vbms32_micro
PKGS += lib_files lib_interpolation lib_nau7802 lib_pn532
PKGS += lib_ws2812 logui lib_code_server lib_midi lib_disp_ui
PKGS += vdisp lib_tca9535 vbms_harmony32 vbms_harmony16
PKGS += dash35b vl_bike_39p lib_bq27441 boosted_doctor dash16
PKGS += lib_tca9534 UnleashedCreativityLights wheelie_limiter
PKGS += mt6701_config dash_esc vesc_scooter_support lib_esp_led_strip vl_link_status
PKGS += scooter_dashboard_support vesc_x3_bridge legacy_dc_dpv
PKGS += dash_vdisp rmcore_io garmr
# Not here, and not in res_all.qrc, while they are unfinished: dash_s3,
# dash_p4, dash_p4_lua (with dash_common and dash_common_lua, which they
# are built from) and garmr_lua. See CHANGELOG.md.

TEST_PKGS = blacktip_dpv

all: vesc_pkg_all.rcc

vesc_pkg_all.rcc: $(PKGS)
	rcc -binary res_all.qrc -o vesc_pkg_all.rcc

test: $(TEST_PKGS)

clean: $(PKGS)

$(PKGS):
	$(MAKE) -C $@ $(MAKECMDGOALS)

.PHONY: all clean test $(PKGS)
