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 legacy_dc_dpv
PKGS += dash_vdisp rmcore_io garmr
PKGS += ant_bms ant_bms_lua ninebot_bms ninebot_bms_lua
PKGS += throttle_check throttle_check_lua tone_seq tone_seq_lua lib_canmap lib_oi_sdo
# Not here, and not in res_all.qrc: dash_s3, dash_p4, dash_p4_lua (with
# dash_common and dash_common_lua, which they are built from) and garmr_lua
# while unfinished; precharge, precharge_lua, segway_x3_dash and
# xiaomi_leqi_dash until they have run on hardware, since they switch
# contactors or drive the motor; lib_canmap_lua and lib_oi_sdo_lua, which
# are Lua sources a script bundles rather than packages. 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)
