diff -uNr pythia6.ORIG/idate.c pythia6/idate.c --- pythia6.ORIG/idate.c 2006-04-30 18:36:01.000000000 +0900 +++ pythia6/idate.c 2006-04-30 18:36:01.000000000 +0900 @@ -0,0 +1,25 @@ +#include + +void idate_(int idtemp[]) +{ + struct tm q; + time_t tp; + + time(&tp); + q = *localtime(&tp); + idtemp[0] = q.tm_year + 1900; + idtemp[1] = q.tm_mon + 1; + idtemp[2] = q.tm_mday; +} + +void itime_(int idtemp[]) +{ + struct tm q; + time_t tp; + + time(&tp); + q = *localtime(&tp); + idtemp[0] = q.tm_hour; + idtemp[1] = q.tm_min; + idtemp[2] = q.tm_sec; +} diff -uNr pythia6.ORIG/makePythia6.linux pythia6/makePythia6.linux --- pythia6.ORIG/makePythia6.linux 2005-12-21 17:06:25.000000000 +0900 +++ pythia6/makePythia6.linux 2006-04-30 18:43:31.000000000 +0900 @@ -1,7 +1,9 @@ # /bin/sh -g77 -c -fPIC pythia*.f -g77 -c -fPIC -fno-second-underscore tpythia6_called_from_cc.F +gfortran -c -fPIC pythia*.f +gfortran -c -fPIC -fno-second-underscore tpythia6_called_from_cc.F echo 'void MAIN__() {}' >main.c gcc -c -fPIC main.c gcc -c -fPIC pythia6_common_address.c -g77 -shared -Wl,-soname,libPythia6.so -o libPythia6.so main.o pythia*.o tpythia*.o +gcc -c -fPIC idate.c +gfortran -c -fPIC pydatawrapper.F +gfortran -shared -Wl,-soname,libPythia6.so -o libPythia6.so main.o pythia*.o tpythia*.o idate.o pydatawrapper.o diff -uNr pythia6.ORIG/makePythia6.macosx pythia6/makePythia6.macosx --- pythia6.ORIG/makePythia6.macosx 2006-04-11 18:45:29.000000000 +0900 +++ pythia6/makePythia6.macosx 2006-04-30 18:43:42.000000000 +0900 @@ -4,18 +4,20 @@ FINKDIR=`which fink 2>&1 | sed -ne "s/\/bin\/fink//p"` macosx_minor=`sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2` -g77 -c pythia*.f -g77 -fno-second-underscore -c tpythia6_called_from_cc.F +gfortran -c pythia*.f +gfortran -fno-second-underscore -c tpythia6_called_from_cc.F +gfortran -c pydatawrapper.F echo 'void MAIN__() {}' > main.c gcc -c main.c gcc -c pythia6_common_address.c +gcc -c idate.c rm -f libPythia6.dylib libPythia6.so -gcc -dynamiclib -flat_namespace -single_module -undefined dynamic_lookup \ - -install_name $HOME/pythia6/libPythia6.dylib -o libPythia6.dylib \ - main.o tpythia6_called_from_cc.o pythia*.o -L$FINKDIR/lib -lg2c +gfortran -dynamiclib -flat_namespace -single_module -undefined dynamic_lookup \ + -install_name $ROOTSYS/lib/libPythia6.dylib -o libPythia6.dylib \ + main.o tpythia6_called_from_cc.o pythia*.o pydatawrapper.o idate.o if [ $macosx_minor -ge 4 ]; then ln -s libPythia6.dylib libPythia6.so else - gcc -bundle -flat_namespace -undefined dynamic_lookup -o libPythia6.so \ - main.o tpythia6_called_from_cc.o pythia*.o -L$FINKDIR/lib -lg2c + gfortran -bundle -flat_namespace -undefined dynamic_lookup -o libPythia6.so \ + main.o tpythia6_called_from_cc.o pythia*.o pydatawrapper.o idate.o fi diff -uNr pythia6.ORIG/makePythia6.macosx10.3 pythia6/makePythia6.macosx10.3 --- pythia6.ORIG/makePythia6.macosx10.3 2006-04-30 18:36:01.000000000 +0900 +++ pythia6/makePythia6.macosx10.3 2006-04-30 18:36:01.000000000 +0900 @@ -0,0 +1,14 @@ +# /bin/sh +g77 -c pythia*.f +g77 -fno-second-underscore -c tpythia6_called_from_cc.F +echo 'void MAIN__() {}' > main.c +gcc -c main.c +gcc -c pythia6_common_address.c +g77 -v -bundle -flat_namespace -undefined dynamic_lookup -o libPythia6.so \ + main.o tpythia6_called_from_cc.o pythia*.o +g77 -dynamiclib -flat_namespace -single_module -undefined dynamic_lookup \ + -install_name $HOME/pythia6/libPythia6.dylib -o libPythia6.dylib \ + main.o tpythia6_called_from_cc.o pythia*.o +rm -f libPythia6.a +ar rv libPythia6.a main.o tpythia6_called_from_cc.o pythia*.o +ranlib libPythia6.a diff -uNr pythia6.ORIG/pydatawrapper.F pythia6/pydatawrapper.F --- pythia6.ORIG/pydatawrapper.F 2006-04-30 18:36:01.000000000 +0900 +++ pythia6/pydatawrapper.F 2006-04-30 18:36:01.000000000 +0900 @@ -0,0 +1,8 @@ + subroutine pydatawrapper + external pydata + call pydatadummysub(pydata) + return + end + subroutine pydatadummysub(a) + return + end