Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1624 giacomo 1
#
2
#
3
#
4
 
5
ifndef BASE
6
BASE=../..
7
endif
8
include $(BASE)/config/config.mk
9
 
10
MATLAB_RTW_DEMO_DIR  = ./carrello0_grt_rtw/
11
 
12
DEFINE_MODEL = carrello0
13
DEFINE_NUMST = 2
14
DEFINE_NCSTATES = 7
15
DEFINE_TID01EQ = 1
16
DEFINE_RTWLIB += -lrtw
17
DEFINE_SOLVER = ode4.o
18
 
19
FILE_CODE = $(DEFINE_MODEL).o
20
FILE_DATA = $(DEFINE_MODEL)_data.o
21
 
22
PROGS = rtw
23
 
24
RTW_CFG = "-I. -I$(MATLAB_RTW_DEMO_DIR) -DUSE_RTMODEL -DRT -DMODEL=$(DEFINE_MODEL) -DNUMST=$(DEFINE_NUMST) -DNCSTATES=$(DEFINE_NCSTATES) -DTID01EQ=$(DEFINE_TID01EQ)"
25
 
26
RTW_OBJS = $(MATLAB_RTW_DEMO_DIR)/$(FILE_CODE) $(DEFINE_SOLVER) $(MODULES_rtwlib)
27
 
28
ifeq ($(FILE_DATA),$(DEFINE_MODEL)_data.o)
29
RTW_OBJS += $(MATLAB_RTW_DEMO_DIR)/$(FILE_DATA)
30
endif
31
 
32
include $(BASE)/config/example.mk
33
 
34
rtw:
35
	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__"
36