Subversion Repositories shark

Rev

Details | 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
11
MATLAB_RTW_DEMO_DIR  = /home/mckrak/test_grt_rtw/
12
 
13
DEFINE_MODEL = test
14
DEFINE_NUMST = 1
15
 
16
PROGS = rtw
17
 
18
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)"
19
 
20
RTW_OBJS = $(MATLAB_RTW_DEMO_DIR)/$(DEFINE_MODEL).o $(MATLAB_RTW_DEMO_DIR)/$(DEFINE_MODEL)_data.o
21
 
22
include $(BASE)/config/example.mk
23
 
24
rtw:
25
	make -f $(SUBMAKE) OTHERINCL=$(RTW_CFG) APP=rtw INIT= OTHEROBJS="initfile.o $(RTW_OBJS)" SHARKOPT="__OLDCHAR__"
26