Subversion Repositories shark

Rev

Rev 1345 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1342 giacomo 1
#
2
#
3
#
4
 
5
ifndef BASE
6
BASE=../..
7
endif
8
include $(BASE)/config/config.mk
9
 
10
MATLAB_ROOT = /matlab
1368 giacomo 11
MATLAB_RTW_DEMO_DIR  = /usr/local/home/giacomo/shark_mat/Subsystem_grt_rtw/
1342 giacomo 12
 
1368 giacomo 13
DEFINE_MODEL = Subsystem
1342 giacomo 14
DEFINE_NUMST = 1
1343 giacomo 15
DEFINE_RTWLIB += -lrtw
1342 giacomo 16
 
1345 giacomo 17
FILE_CODE = $(DEFINE_MODEL).o
18
FILE_DATA = $(DEFINE_MODEL)_data.o
19
 
1342 giacomo 20
PROGS = rtw
21
 
22
RTW_CFG = "-I$(MATLAB_ROOT)/simulink/include -I$(MATLAB_ROOT)/extern/include -I$(MATLAB_ROOT)/rtw/c/src -I$(MATLAB_ROOT)/rtw/c/libsrc -I$(MATLAB_RTW_DEMO_DIR) -DUSE_RTMODEL -DRT -DMODEL=$(DEFINE_MODEL) -DNUMST=$(DEFINE_NUMST)"
23
 
1345 giacomo 24
RTW_OBJS = $(MATLAB_RTW_DEMO_DIR)/$(FILE_CODE) $(MODULES_rtwlib)
1342 giacomo 25
 
1345 giacomo 26
ifeq ($(FILE_DATA),$(DEFINE_MODEL)_data.o)
27
RTW_OBJS += $(MATLAB_RTW_DEMO_DIR)/$(FILE_DATA)
28
endif
29
 
1342 giacomo 30
include $(BASE)/config/example.mk
31
 
32
rtw:
1343 giacomo 33
	make -f $(SUBMAKE) OTHERLIBS=$(DEFINE_RTWLIB) OTHERINCL=$(RTW_CFG) APP=rtw INIT= OTHEROBJS="initfile.o rt_sim_shark.o $(RTW_OBJS)" SHARKOPT="__OLDCHAR__"
1342 giacomo 34