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