1 # Copyright (C) 2013, 2015 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)
42 analog_passthrough_rpp \
48 digital_passthrough_rpp \
52 hbridge_analog_control_rpp \
53 hbridge_digital_control_rpp \
54 hbridge_sinewave_control_rpp \
59 log_analog_input_rpp \
63 # Check that each demo is used for least one target
64 all_demos = $(wildcard *.slx)
65 unused_demos = $(filter-out $(sort $(demos_hdk) $(demos_hydctr) $(demos_tms570_rpp)),$(all_demos:%.slx=%))
66 missing_demos = $(filter-out $(all_demos:%.slx=%),$(sort $(DEMOS)))
67 $(if $(unused_demos),$(error Unused demos: $(unused_demos)))
68 $(if $(missing_demos),$(error Missing demos: $(missing_demos)))
71 matlab -nojvm -r "try; rpp_build_demos $(DEMOS); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
74 $(MAKE) -C ../lib rpp-lib.lib
76 MODELS=$(wildcard *.slx)
77 BUILD_DIRS=$(MODELS:%.slx=%_rpp)
82 print: # Used by buildbot