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

Last change on this file since 708 was 708, checked in by dkearney, 17 years ago

updateing build system for rappture and language bindings.
librappture now includes a static version of libscew.
this means librappture needs to be linked directly against libexpat.
removed references to libscew from language bindings' makefiles.
corrected matlab and octave makefiles to only compile when dependencies are updated.
added --libdir flag so you can install platform dependent files into lib64 on 64-bit systems.
adjusted the rappture.env file to add lib64 directories to search paths incase they exist.

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