source: trunk/src/octave/Makefile.in @ 520

Last change on this file since 520 was 520, checked in by dkearney, 18 years ago

added units conversion from deg->rad to tcl bindings,
adjusted matlab and octave makefiles to include more specific compile dependancies
adjusted rappture.h so people can just include 1 header file to get all functionalaity
added new units_on/units_off flags to rappture's core units.

File size: 4.4 KB
Line 
1
2ifndef RP_INSTALL_BASE
3RP_INSTALL_BASE = @prefix@
4endif
5
6# tell make where to find the expat & libscew headers
7INCL_RP_DEPS    = -I$(RP_INSTALL_BASE)/include
8
9LIB_SCEW_FLAG   = -L$(RP_INSTALL_BASE)/lib -lscew
10
11# define the top of the rappture directory structure
12RP_BASE   = @RP_BASE@
13
14# define our compiling environment
15#
16OCT             = @MKOCTFILE@
17
18# define our directories
19#
20INCLUDES_DIR    = $(RP_BASE)/src
21LIB_DIR         = $(RP_BASE)/src
22OCTAVE_SRC      = $(SRC_DIR)/octave
23LIB_RAPPTURE    = -L$(LIB_DIR) -lrappture
24INCL_CORE       = -I$(INCLUDES_DIR)/core
25INCL_OCTAVE     = -I$(INCLUDES_DIR)/octave
26
27all: RpOctave install_octave
28install: install_octave
29
30#### Octave ########################################################
31install_octave: RpOctave
32        if test ! -d $(RP_INSTALL_BASE)/lib/octave; then \
33                mkdir $(RP_INSTALL_BASE)/lib/octave; \
34        fi
35        cp *.oct* $(RP_INSTALL_BASE)/lib/octave
36####################################################################
37
38OCT_INCLS = $(INCL_OCTAVE) $(INCL_CORE) $(INCL_RP_DEPS)
39OCTAVE_COMP_ARGS = $(OCT_INCLS) $(LIB_RAPPTURE) $(LIB_SCEW_FLAG)
40RpOctave:       rpAddPresets.oct \
41                        rpLib.oct \
42                        rpLibChildrenByType.oct \
43                        rpLibChildren.oct \
44                        rpLibElementAsComp.oct \
45                        rpLibElementAsId.oct \
46                        rpLibElementAsObject.oct \
47                        rpLibElementAsType.oct \
48                        rpLibElement.oct \
49                        rpLibGet.oct \
50                        rpLibGetString.oct \
51                        rpLibGetDouble.oct \
52                        rpLibNodeComp.oct \
53                        rpLibNodeId.oct \
54                        rpLibNodeType.oct \
55                        rpLibPut.oct \
56                        rpLibPutDouble.oct \
57                        rpLibPutSingle.oct \
58                        rpLibResult.oct \
59                        rpLibXml.oct \
60                        rpUnitsConvert.oct \
61                        rpUnitsConvertDbl.oct \
62                        rpUnitsConvertStr.oct \
63                        rpUnitsConvertObjDbl.oct \
64                        rpUnitsConvertObjStr.oct \
65                        rpUnitsDefineUnit.oct \
66                        rpUnitsFind.oct \
67                        rpUnitsGetBasis.oct \
68                        rpUnitsGetExponent.oct \
69                        rpUnitsGetUnits.oct \
70                        rpUnitsGetUnitsName.oct \
71                        rpUnitsGetMakeMetric.oct
72
73rpAddPresets.oct:
74        $(OCT) rpAddPresets.cc            $(OCTAVE_COMP_ARGS)
75rpLib.oct:
76        $(OCT) rpLib.cc                   $(OCTAVE_COMP_ARGS)
77rpLibChildrenByType.oct:
78        $(OCT) rpLibChildrenByType.cc     $(OCTAVE_COMP_ARGS)
79rpLibChildren.oct:
80        $(OCT) rpLibChildren.cc           $(OCTAVE_COMP_ARGS)
81rpLibElementAsComp.oct:
82        $(OCT) rpLibElementAsComp.cc      $(OCTAVE_COMP_ARGS)
83rpLibElementAsId.oct:
84        $(OCT) rpLibElementAsId.cc        $(OCTAVE_COMP_ARGS)
85rpLibElementAsObject.oct:
86        $(OCT) rpLibElementAsObject.cc    $(OCTAVE_COMP_ARGS)
87rpLibElementAsType.oct:
88        $(OCT) rpLibElementAsType.cc      $(OCTAVE_COMP_ARGS)
89rpLibElement.oct:
90        $(OCT) rpLibElement.cc            $(OCTAVE_COMP_ARGS)
91rpLibGet.oct:
92        $(OCT) rpLibGet.cc                $(OCTAVE_COMP_ARGS)
93rpLibGetString.oct:
94        $(OCT) rpLibGetString.cc          $(OCTAVE_COMP_ARGS)
95rpLibGetDouble.oct:
96        $(OCT) rpLibGetDouble.cc          $(OCTAVE_COMP_ARGS)
97rpLibNodeComp.oct:
98        $(OCT) rpLibNodeComp.cc           $(OCTAVE_COMP_ARGS)
99rpLibNodeId.oct:
100        $(OCT) rpLibNodeId.cc             $(OCTAVE_COMP_ARGS)
101rpLibNodeType.oct:
102        $(OCT) rpLibNodeType.cc           $(OCTAVE_COMP_ARGS)
103rpLibPut.oct:
104        $(OCT) rpLibPut.cc                $(OCTAVE_COMP_ARGS)
105rpLibPutDouble.oct:
106        $(OCT) rpLibPutDouble.cc          $(OCTAVE_COMP_ARGS)
107rpLibPutSingle.oct:
108        $(OCT) rpLibPutString.cc          $(OCTAVE_COMP_ARGS)
109rpLibResult.oct:
110        $(OCT) rpLibResult.cc             $(OCTAVE_COMP_ARGS)
111rpLibXml.oct:
112        $(OCT) rpLibXml.cc                $(OCTAVE_COMP_ARGS)
113rpUnitsConvert.oct:
114        $(OCT) rpUnitsConvert.cc          $(OCTAVE_COMP_ARGS)
115rpUnitsConvertDbl.oct:
116        $(OCT) rpUnitsConvertDbl.cc       $(OCTAVE_COMP_ARGS)
117rpUnitsConvertStr.oct:
118        $(OCT) rpUnitsConvertStr.cc       $(OCTAVE_COMP_ARGS)
119rpUnitsConvertObjDbl.oct:
120        $(OCT) rpUnitsConvertObjDbl.cc    $(OCTAVE_COMP_ARGS)
121rpUnitsConvertObjStr.oct:
122        $(OCT) rpUnitsConvertObjStr.cc    $(OCTAVE_COMP_ARGS)
123rpUnitsDefineUnit.oct:
124        $(OCT) rpUnitsDefineUnit.cc       $(OCTAVE_COMP_ARGS)
125rpUnitsFind.oct:
126        $(OCT) rpUnitsFind.cc             $(OCTAVE_COMP_ARGS)
127rpUnitsGetBasis.oct:
128        $(OCT) rpUnitsGetBasis.cc         $(OCTAVE_COMP_ARGS)
129rpUnitsGetExponent.oct:
130        $(OCT) rpUnitsGetExponent.cc      $(OCTAVE_COMP_ARGS)
131rpUnitsGetUnits.oct:
132        $(OCT) rpUnitsGetUnits.cc         $(OCTAVE_COMP_ARGS)
133rpUnitsGetUnitsName.oct:
134        $(OCT) rpUnitsGetUnitsName.cc     $(OCTAVE_COMP_ARGS)
135rpUnitsGetMakeMetric.oct:
136        $(OCT) rpUnitsMakeMetric.cc       $(OCTAVE_COMP_ARGS)
137
138docs:
139        if test ! -d docs; then \
140                mkdir docs; \
141        fi
142        if test ! -d docs/doxygen; then \
143                mkdir docs/doxygen; \
144        fi
145        doxygen
146
147#### CLEAN UP ############################################################
148clean:
149        - rm -f rp*.o*
150
151distclean: clean
152        - rm Makefile
Note: See TracBrowser for help on using the repository browser.