Blame | Last modification | View Log | RSS feed
#
#
#
ifndef BASE
BASE=../..
endif
include $(BASE)/config/config.mk
MATLAB_RTW_DEMO_DIR = ./carrello0_grt_rtw/
DEFINE_MODEL = carrello0
DEFINE_NUMST = 2
DEFINE_NCSTATES = 7
DEFINE_TID01EQ = 1
DEFINE_RTWLIB += -lrtw
DEFINE_SOLVER = ode4.o
FILE_CODE = $(DEFINE_MODEL).o
FILE_DATA = $(DEFINE_MODEL)_data.o
PROGS = rtw
RTW_CFG = "-I. -I$(MATLAB_RTW_DEMO_DIR) -DUSE_RTMODEL -DRT -DMODEL=$(DEFINE_MODEL) -DNUMST=$(DEFINE_NUMST) -DNCSTATES=$(DEFINE_NCSTATES) -DTID01EQ=$(DEFINE_TID01EQ)"
RTW_OBJS = $(MATLAB_RTW_DEMO_DIR)/$(FILE_CODE) $(DEFINE_SOLVER) $(MODULES_rtwlib)
ifeq ($(FILE_DATA),$(DEFINE_MODEL)_data.o)
RTW_OBJS += $(MATLAB_RTW_DEMO_DIR)/$(FILE_DATA)
endif
include $(BASE)/config/example.mk
rtw:
make -f $(SUBMAKE) OTHERLIBS=$(DEFINE_RTWLIB) OTHERINCL=$(RTW_CFG) APP=rtw INIT= OTHEROBJS="initfile.o control.o sensors.o percorso.o rt_sim_shark.o $(RTW_OBJS)" SHARKOPT="__OLDCHAR__"