# Copyright (C) 2013, 2015 Czech Technical University in Prague # # Authors: # - Michal Sojka # # This document contains proprietary information belonging to Czech # Technical University in Prague. Passing on and copying of this # document, and communication of its contents is not permitted # without prior written authorization. # # File : Makefile # Abstract: # Build demos include ../lib/Makefile.config DEMOS = $(demos_$(TARGET)) demos_rm48_hdk = $(demos_hdk) demos_tms570_hdk = $(demos_hdk) demos_hdk = \ adc_demo_hdk \ can_ext_mode_demo \ can_simple_demo \ cantransmit \ continuous_hdk \ demo_board_hdk \ echo_char \ gio_demo_hdk \ hello_world \ multirate_st_hdk comma=, DEMOS_ARG=$(patsubst %$(comma),%,) all: lib matlab -nojvm -r "try; rpp_build_demos $(DEMOS); catch ME, disp(getReport(ME)); exit(1); end; exit(0)" lib: $(MAKE) -C ../lib rpp-lib.lib MODELS=$(wildcard *.slx) BUILD_DIRS=$(MODELS:%.slx=%_rpp) clean: rm -rf $(BUILD_DIRS)