Changeset 1275 in Sophya for trunk/SophyaLib
- Timestamp:
- Nov 2, 2000, 10:20:27 AM (25 years ago)
- Location:
- trunk/SophyaLib
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/Makefile
r1274 r1275 3 3 all: $(LIB)libSysTools.a 4 4 clean: 5 rm -f $(OBJ)ctimer.o $(OBJ) datacards.o $(OBJ)datatype.o $(OBJ)dvlist.o $(OBJ)fiondblock.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)strutilxx.o $(OBJ)utils.o $(OBJ)gnumd5.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)timing.o5 rm -f $(OBJ)ctimer.o $(OBJ)cxxcmplnk.o $(OBJ)datacards.o $(OBJ)datatype.o $(OBJ)dvlist.o $(OBJ)fiondblock.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)strutilxx.o $(OBJ)utils.o $(OBJ)gnumd5.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)timing.o 6 6 rm -f $(LIB)libSysTools.a 7 $(LIB)libSysTools.a : $(OBJ)ctimer.o $(OBJ) datacards.o $(OBJ)datatype.o $(OBJ)dvlist.o $(OBJ)fiondblock.o $(OBJ)gnumd5.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)strutilxx.o $(OBJ)timing.o $(OBJ)utils.o7 $(LIB)libSysTools.a : $(OBJ)ctimer.o $(OBJ)cxxcmplnk.o $(OBJ)datacards.o $(OBJ)datatype.o $(OBJ)dvlist.o $(OBJ)fiondblock.o $(OBJ)gnumd5.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)strutilxx.o $(OBJ)timing.o $(OBJ)utils.o 8 8 $(ARCXX) $(ARCXXFLAGS) $@ $? 9 9 ifeq ($(CXX),cxx) … … 12 12 13 13 $(OBJ)ctimer.o: ctimer.cc $(INC)machdefs.h ctimer.h 14 $(OBJ)cxxcmplnk.o: cxxcmplnk.cc pdlmgr.h \ 15 $(INC)machdefs.h 14 16 $(OBJ)datacards.o: datacards.cc $(INC)machdefs.h \ 15 17 datacards.h pexceptions.h -
trunk/SophyaLib/BaseTools/objlist.list
r1238 r1275 1 1 ctimer.o 2 cxxcmplnk.o 2 3 datacards.o 3 4 datatype.o -
trunk/SophyaLib/SysTools/pdlmgr.cc
r1249 r1275 23 23 libraries. The present version has been adapted for different Unix 24 24 flavours (Linux, Compaq/Digital Unix, SGI IRIX, IBM AIX, Sun Solaris). 25 The example here the linking of shared library named "mylib.so"25 The example here shows the linking of shared library named "mylib.so" 26 26 containing a function \c double \c myfunction(double x). 27 27 \code … … 48 48 void PDynLinkMgr::SetTmpDir(string const & path) 49 49 { 50 if ( (path.length() > 0) && (path[path.length() ] != '/') ) GetTmpDir() = path + '/';50 if ( (path.length() > 0) && (path[path.length()-1] != '/') ) GetTmpDir() = path + '/'; 51 51 else GetTmpDir() = path; 52 #if defined(OSF1) || defined(Linux) || defined(SunOS) 52 #if defined(OSF1) || defined(Linux) || defined(SunOS) || defined(IRIX64) 53 char* varenv=NULL; 54 #if !defined(IRIX64) 53 55 string cmd = "LD_LIBRARY_PATH="; 54 char* varenv=NULL;55 56 varenv=getenv("LD_LIBRARY_PATH"); 56 #elif defined(IRIX64) 57 #else 58 #ifdef SGI_ARCH64 57 59 string cmd = "LD_LIBRARYN32_PATH="; 58 char* varenv=NULL;59 60 varenv=getenv("LD_LIBRARYN32_PATH"); 61 #else 62 string cmd = "LD_LIBRARYN64_PATH="; 63 varenv=getenv("LD_LIBRARYN64_PATH"); 64 #endif 65 #endif 60 66 61 67 if (varenv == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.