1 # Copyright (C) 2013, 2015, 2019 Czech Technical University in Prague
4 # - Michal Sojka <sojkam1@fel.cvut.cz>
6 # This document contains proprietary information belonging to Czech
7 # Technical University in Prague. Passing on and copying of this
8 # document, and communication of its contents is not permitted
9 # without prior written authorization.
15 include ../lib/Makefile.config
17 DEMOS = $(demos_$(TARGET))
19 demos_rm48_hdk = $(demos_hdk)
20 demos_tms570_hdk = $(demos_hdk)
21 demos_tms570_hydctr = $(demos_hydctr)
44 analog_passthrough_rpp \
50 digital_passthrough_rpp \
54 hbridge_analog_control_rpp \
55 hbridge_digital_control_rpp \
56 hbridge_sinewave_control_rpp \
61 log_analog_input_rpp \
65 # Check that each demo is used for least one target
66 all_demos = $(wildcard *.slx)
67 unused_demos = $(filter-out $(sort $(demos_hdk) $(demos_hydctr) $(demos_tms570_rpp)),$(all_demos:%.slx=%))
68 missing_demos = $(filter-out $(all_demos:%.slx=%),$(sort $(DEMOS)))
69 $(if $(unused_demos),$(error Unused demos: $(unused_demos)))
70 $(if $(missing_demos),$(error Missing demos: $(missing_demos)))
73 matlab -nojvm -r "try; rpp_build_demos $(DEMOS); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
76 $(MAKE) -C ../lib rpp-lib.lib
78 MODELS=$(wildcard *.slx)
79 BUILD_DIRS=$(MODELS:%.slx=%_rpp)
84 print: # Used by buildbot