Changeset 1783 in Sophya
- Timestamp:
- Nov 22, 2001, 12:33:19 PM (24 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/LinAlg/extlib_list
r777 r1783 1 lapack2 dxml3 for -
trunk/SophyaExt/LinAlg/extslb_list
r777 r1783 1 lapack2 dxml3 for -
trunk/SophyaLib/BaseTools/machdefs_mkmf.h
r1261 r1783 34 34 #define MACH_SGI 35 35 #define OS_IRIX64 36 #endif 37 38 #ifdef __APPLE__ 39 #ifdef __MACH__ 40 #define MACH_POWERPC 41 #define OS_MACOSX 42 #endif 36 43 #endif 37 44 … … 174 181 #define SWAP 0 175 182 #define SWAPDEFAUT 0 183 184 #elif defined(OS_MACOSX) 185 186 typedef signed char int_1; 187 typedef unsigned char uint_1; 188 typedef int int_4; 189 typedef unsigned int uint_4; 190 typedef short int_2; 191 typedef unsigned short uint_2; 192 typedef float r_4; 193 typedef double r_8; 194 typedef long long int_8; 195 typedef unsigned long long uint_8; 196 197 #define SWAP 0 198 #define SWAPDEFAUT 0 199 176 200 177 201 #else … … 344 368 #endif 345 369 370 #ifdef OS_MACOSX 371 #define NO_VALUES_H 372 #include "osx_values.h" 373 /* Faute de mieux pour le moment : */ 374 #define drand48() ((double)(random())/LONG_MAX) 375 #endif 376 346 377 347 378 /********************************************************/ -
trunk/SophyaLib/BaseTools/ppersist.cc
r1202 r1783 17 17 18 18 // strptime n'est pas defini sous Linux - Reza Mars 2000 19 #if defined(OS_LINUX) 19 #if defined(OS_LINUX) || defined(OS_MACOSX) 20 20 extern "C" { 21 21 char *strptime(char *buf, const char *format, const struct tm *tm); … … 430 430 rbuf[32] = '\0'; 431 431 struct tm tm; 432 #if ndef __MWERKS__432 #if !(defined(__MWERKS__) || defined(OS_MACOSX)) 433 433 strptime(rbuf,"%d/%m/%Y %H:%M:%S GMT",&tm); 434 434 #else -
trunk/SophyaLib/BaseTools/smathconst.h
r773 r1783 4 4 5 5 #include "machdefs.h" 6 #ifndef NO_VALUES_H 6 7 #include <values.h> 8 #else 9 #include <math.h> 10 #endif 7 11 8 12 /* EA conflit entre les diverses copies de nbmath.h, nbconst.h... A nettoyer... */ -
trunk/SophyaLib/HiStats/histos2.cc
r1413 r1783 9 9 #include <stdlib.h> 10 10 #include <stdio.h> 11 #ifndef __mac__11 #ifndef NO_VALUES_H 12 12 #include <values.h> 13 13 #endif -
trunk/SophyaLib/HiStats/xntuple.cc
r1470 r1783 9 9 #include "perrors.h" 10 10 #include "xntuple.h" 11 #ifdef OS_MACOSX 12 #include <unistd.h> 13 #endif 11 14 12 15 #define LENNAME 31 -
trunk/SophyaLib/Mgr/Makefile.h
r1471 r1783 127 127 endif 128 128 129 ifeq ($(MACHEROS),Darwin) 130 AR := libtool 131 ARFLAGS := -static -o 132 EROSCXX := g++ 133 CXX := g++ 134 CC := cc 135 endif 136 129 137 # Avec certains compilateurs C++ (KCC, aCC) , il faut fabriquer les librairies et 130 138 # les shared libs avec la meme commande … … 152 160 XCFLAGS := -I/usr/X11/include -I/usr/X11R6/include 153 161 LDLIBS := -ldl 162 endif 163 164 ifeq (${MACHEROS},Darwin) 165 XLDLIBS := -L/usr/X11R6/lib 166 XCFLAGS := -I/usr/X11R6/include -fno-coalesce -fkeep-inline-functions 154 167 endif 155 168 -
trunk/SophyaLib/Mgr/Makefile.slb
r1614 r1783 14 14 # librairie compilateur GNU (g++) 15 15 LIBGPP := -L$(GLB) -lstdc++ 16 ifeq ($(HOSTTYPE), powerpc) 17 LIBGPP = -L$(GLB) 16 #ifeq ($(HOSTTYPE), powerpc) 17 # LIBGPP := -L$(GLB) 18 #endif 19 ifeq ($(MACHEROS), Darwin) 20 LIBGPP := -L/usr/lib/gcc/darwin/default -lstdc++ -lcc_dynamic 18 21 endif 19 22 … … 122 125 endif 123 126 127 # Construction de shared-libs sous OSX 128 ifeq ($(MACHEROS), Darwin) 129 override CMDSHL := libtool -dynamic 130 override FGSHLA := 131 override FGSHLN := 132 override TILSHL := 133 override CMDSHLCXX := libtool -dynamic 134 endif 135 136 -
trunk/SophyaLib/Mgr/libdirs
r1609 r1783 8 8 Samba 9 9 SkyT 10 SysSpec -
trunk/SophyaLib/Mgr/mkmf
r1603 r1783 1 1 #!/bin/csh 2 # $Id: mkmf,v 1.1 4 2001-07-30 16:36:54 ansariExp $2 # $Id: mkmf,v 1.15 2001-11-22 11:33:18 aubourg Exp $ 3 3 4 4 # Pour debugger … … 102 102 set f = $libnames[$i] 103 103 set k = $i ; @ k++ 104 if ( -d ../$f ) then104 if ( -d ../$f && ! -f ../$f/no_mkmf ) then 105 105 set cmd = "./mkmflib $f " 106 106 echo "mkmf: Creation makefile lib $f" … … 135 135 136 136 echo 'mkmf: Writing shared library building part of the makefile :' 137 if ( `uname` == "Darwin" ) then 138 set sosfx = "dylib" 139 else 140 set sosfx = "so" 141 endif 137 142 138 143 echo '# Shared library creation part of the Makefile' >> GNUmakefile … … 146 151 echo 'EXTSLB = -L$(EXTSLBPATH)' $extslb_list >> GNUmakefile 147 152 echo 'XPILIBS = $(LIBXPIPATH) $(LIBXPILIST)' >> GNUmakefile 148 echo '' >> GNUmakefile149 echo '# main dependence list' >> GNUmakefile150 echo 'slball : slb slbext slbpi ' >> GNUmakefile151 echo 'slb : $(SLB)libsophya. so '>> GNUmakefile152 echo 'slbext : $(SLB)libextsophya. so '>> GNUmakefile153 echo 'slbpi : $(SLB)libPI. so'>> GNUmakefile154 echo ' ' >> GNUmakefile153 echo '' >> GNUmakefile 154 echo '# main dependence list' >> GNUmakefile 155 echo 'slball : slb slbext slbpi ' >> GNUmakefile 156 echo 'slb : $(SLB)libsophya.'$sosfx >> GNUmakefile 157 echo 'slbext : $(SLB)libextsophya.'$sosfx >> GNUmakefile 158 echo 'slbpi : $(SLB)libPI.'$sosfx >> GNUmakefile 159 echo ' ' >> GNUmakefile 155 160 156 161 echo '# List of .o files for each module' >> GNUmakefile … … 182 187 183 188 echo '# Building Sophya shared library' >> GNUmakefile 184 echo '$(SLB)libsophya. so : $(PSLB)'>> GNUmakefile189 echo '$(SLB)libsophya.'$sosfx' : $(PSLB)' >> GNUmakefile 185 190 echo ' $(CMDTILSHL) ' >> GNUmakefile 186 191 echo ' cd $(OBJ); \' >> GNUmakefile 187 echo ' $(CMDSHLCXX) -o $(SLB)libsophya. so \'>> GNUmakefile192 echo ' $(CMDSHLCXX) -o $(SLB)libsophya.'$sosfx' \' >> GNUmakefile 188 193 echo ' $(FGSHLACXX) $(ALLOBJS) $(FGSHLNCXX)\' >> GNUmakefile 189 194 echo ' -L$(SLB) $(LIBLSHL)' >> GNUmakefile … … 191 196 192 197 echo '# Building ExtSophya shared library' >> GNUmakefile 193 echo '$(SLB)libextsophya. so : $(EXTPSLB)'>> GNUmakefile198 echo '$(SLB)libextsophya.'$sosfx' : $(EXTPSLB)' >> GNUmakefile 194 199 echo ' $(CMDTILSHL) ' >> GNUmakefile 195 200 echo ' cd $(OBJ); \' >> GNUmakefile 196 echo ' $(CMDSHLCXX) -o $(SLB)libextsophya. so \'>> GNUmakefile201 echo ' $(CMDSHLCXX) -o $(SLB)libextsophya.'$sosfx' \' >> GNUmakefile 197 202 echo ' $(FGSHLACXX) $(ALLEXTOBJS) $(FGSHLNCXX)\' >> GNUmakefile 198 203 echo ' -L$(SLB) -lsophya $(EXTLIB) $(LIBLSHL)' >> GNUmakefile … … 200 205 201 206 echo '# Building PI shared library' >> GNUmakefile 202 echo '$(SLB)libPI. so : $(PIPSLB)'>> GNUmakefile207 echo '$(SLB)libPI.'$sosfx' : $(PIPSLB)' >> GNUmakefile 203 208 echo ' $(CMDTILSHL) ' >> GNUmakefile 204 209 echo ' cd $(OBJ); \' >> GNUmakefile 205 echo ' $(CMDSHLCXX) -o $(SLB)libPI. so \'>> GNUmakefile210 echo ' $(CMDSHLCXX) -o $(SLB)libPI.'$sosfx' \' >> GNUmakefile 206 211 echo ' $(FGSHLACXX) $(ALLPIOBJS) $(FGSHLNCXX) \' >> GNUmakefile 207 212 echo ' -L$(SLB) -lsophya -lextsophya $(EXTLIB) $(XPILIBS) $(LIBLSHL)' >> GNUmakefile … … 213 218 clean: 214 219 if [ -d \$(LIB) ] ; then cd \$(LIB)/. ; rm -f *.a ; fi 215 if [ -d \$(SLB) ] ; then cd \$(SLB)/. ; rm -f *. so; fi220 if [ -d \$(SLB) ] ; then cd \$(SLB)/. ; rm -f *.$sosfx ; fi 216 221 if [ -d \$(OBJ) ] ; then cd \$(OBJ)/. ; rm -f *.o rm -rf cxxrep* ; fi 217 222 # if [ -d PI ] ; then cd PI/. ; \$(MAKE) clean ; fi -
trunk/SophyaLib/NTools/generaldata.cc
r1241 r1783 3 3 #include <stdlib.h> 4 4 #include <iostream.h> 5 #ifndef NO_VALUES_H 5 6 #include <values.h> 7 #endif 6 8 #include <math.h> 7 9 #include <string.h> -
trunk/SophyaLib/NTools/ntoolsinit.cc
r1159 r1783 69 69 // On met un objet initiator en statique, pour les loaders qui savent 70 70 // appeler le constructeur des objets statiques Reza 08/98 71 #ifndef Darwin 71 72 static NToolsInitiator ntoolsinit; 73 #endif 72 74 -
trunk/SophyaLib/NTools/ntoolsinit.h
r926 r1783 4 4 #ifndef NTOOLSINIT_H_SEEN 5 5 #define NTOOLSINIT_H_SEEN 6 7 6 8 7 // Classe d''initialisation pour le module de NTools -
trunk/SophyaLib/Samba/bruit.cc
r782 r1783 6 6 #include "unixmac.h" 7 7 #endif 8 8 9 9 10 #include "fmath.h" … … 13 14 // #include "rancern.h" 14 15 // #include "hbook.h" 16 #ifdef OS_MACOSX 17 #include <limits.h> 18 #endif 15 19 16 20 // Le code des classes NoiseGenerator RWalkNoise -
trunk/SophyaLib/SysTools/pdlmgr.cc
r1371 r1783 3 3 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA 4 4 // 5 #include <machdefs.h> 6 #ifndef OS_MACOSX 7 // EA : gerer dylib macosx un jour... 5 8 6 9 #include "pdlmgr.h" … … 271 274 } 272 275 276 #endif -
trunk/SophyaLib/SysTools/timing.c
r1290 r1783 32 32 #include "timing.h" 33 33 34 clock_t CPUT0, CPUT;35 time_t ELT0, ELT;34 static clock_t CPUT0, CPUT; 35 static time_t ELT0, ELT; 36 36 37 37
Note:
See TracChangeset
for help on using the changeset viewer.