- Timestamp:
- Mar 12, 2006, 8:28:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mesh/Makefile
r312 r332 30 30 PROGS = librpmesh 31 31 TEST_PROGS = test_node2d \ 32 test_node3d \32 #test_node3d \ 33 33 test_element \ 34 34 test_elem2 \ 35 test_mesh \35 #test_mesh \ 36 36 test_grid1d \ 37 test_grid 37 test_grid \ 38 test_field \ 39 test_serializer 38 40 39 41 # define our compiling environment … … 41 43 CC = gcc 42 44 CXX = g++ 43 DEBUG = -g -Wall 44 DEBUG_PLUS = -DDEBUG45 DEBUG = -g -Wall $(DEBUG_PLUS) 46 #DEBUG_PLUS = -DDEBUG 45 47 PY = $(RP_INSTALL_BASE)/bin/python 46 48 MEX = mex … … 94 96 RpChoice.o RpOption.o RpUnitsStd.o RpUnits.o #RpValue.o\ 95 97 # RpValueDouble.o RpValueString.o 96 RP_MESH_DEPS = const.o grid1d _reg.o grid2d.o node3d.o node2d.o \97 element.o mesh.o serializer.o util.o \98 grid1d.o reader.o #field.o98 RP_MESH_DEPS = const.o grid1d.o grid2d.o node2d.o \ 99 element.o serializer.o util.o reader.o \ 100 field.o #node3d.o mesh.o 99 101 100 102 LDLIB_MACOSX = -dynamiclib -o $(LIB_DIR)/$@.dylib … … 117 119 ranlib $@.a; \ 118 120 fi 119 librappture: $(RP_IO_DEPS) $(RP_UNITS_DEPS) $(RP_OTHER_DEPS)120 if test "`uname`" == "Darwin"; then \121 $(CXX) $(DEGUG) $(LDLIB_MACOSX) $^ $(LIB_SCEW_FLAG) -lm; \122 ar -r $@.a $^; \123 ranlib -s $@.a; \124 else \125 $(CXX) $(DEGUG) $(LDLIB_LINUX) $^ $(LIB_SCEW_FLAG) -lm; \126 /sbin/ldconfig -n $(LIB_DIR); \127 ar -r $@.a $^; \128 ranlib $@.a; \129 fi130 131 install_rappture: librappture132 if test "`uname`" == "Darwin"; then \133 cp $<.dylib $(RP_INSTALL_BASE)/lib; \134 cp $<.a $(RP_INSTALL_BASE)/lib; \135 else \136 cp -d $<.so* $(RP_INSTALL_BASE)/lib; \137 cp -d $<.a $(RP_INSTALL_BASE)/lib; \138 fi139 140 121 141 122 ############################################### … … 151 132 serializer.cc: serializer.h serializable.h 152 133 reader.cc: byte_order.h 134 field.cc: grid1d.h 153 135 154 136 grid2d.o: grid2d.cc 155 137 $(CXX) $(CFLAGS) $(DEBUG) -c $? 156 138 grid1d.o: grid1d.cc 157 $(CXX) $(CFLAGS) $(DEBUG) -c $?158 grid1d_reg.o: grid1d_reg.cc159 139 $(CXX) $(CFLAGS) $(DEBUG) -c $? 160 140 util.o: util.cc … … 173 153 $(CXX) $(CFLAGS) $(DEBUG) -c $? 174 154 reader.o: reader.cc 155 $(CXX) $(CFLAGS) $(DEBUG) -c $? 156 field.o: field.cc 175 157 $(CXX) $(CFLAGS) $(DEBUG) -c $? 176 158 … … 195 177 test_grid: test_grid.o ../librpmesh.so 196 178 $(CXX) $(DEBUG) -o $@ $< $(LIB_RPMESH) 179 test_field: test_field.o ../librpmesh.so 180 $(CXX) $(DEBUG) -o $@ $< $(LIB_RPMESH) 181 test_serializer: test_serializer.o ../librpmesh.so 182 $(CXX) $(DEBUG) -o $@ $< $(LIB_RPMESH) 197 183 testg: testg.o ../librpmesh.so 198 184 $(CXX) $(DEBUG) -o $@ $< $(LIB_RPMESH) … … 201 187 #### CLEAN UP ############################################################ 202 188 clean: 203 - rm -f *.o librpmesh.a ../librpmesh.so* $(TEST_PROGS)189 - rm -f *.o *.gch librpmesh.a ../librpmesh.so* $(TEST_PROGS) 204 190
Note: See TracChangeset
for help on using the changeset viewer.