diff -uNr pythia6.ORIG/idate.c pythia6/idate.c --- pythia6.ORIG/idate.c 2006-11-14 09:52:32.000000000 +0900 +++ pythia6/idate.c 2006-11-14 09:52:32.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-11-14 09:52:32.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 2005-04-13 01:39:28.000000000 +0900 +++ pythia6/makePythia6.macosx 2006-11-14 10:08:04.000000000 +0900 @@ -1,14 +1,16 @@ # /bin/sh -g77 -c pythia*.f -g77 -fno-second-underscore -c tpythia6_called_from_cc.F +gfortran -c pythia*.f +gfortran -c pydatawrapper.F +gfortran -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 +gcc -c idate.c +rm -f libPythia6.dylib libPythia6.so +gfortran -dynamiclib -flat_namespace -single_module -undefined dynamic_lookup \ + -install_name @rpath/libPythia6.dylib -o libPythia6.dylib \ + main.o tpythia6_called_from_cc.o pythia*.o pydatawrapper.o idate.o +ln -s libPythia6.dylib libPythia6.so rm -f libPythia6.a -ar rv libPythia6.a main.o tpythia6_called_from_cc.o pythia*.o +ar rv libPythia6.a main.o tpythia6_called_from_cc.o pythia*.o pydatawrapper.o idate.o ranlib libPythia6.a diff -uNr pythia6.ORIG/makePythia6.macosx10.3 pythia6/makePythia6.macosx10.3 --- pythia6.ORIG/makePythia6.macosx10.3 2006-11-14 09:52:32.000000000 +0900 +++ pythia6/makePythia6.macosx10.3 2006-11-14 09:52:32.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-11-14 09:52:32.000000000 +0900 +++ pythia6/pydatawrapper.F 2006-11-14 09:52:32.000000000 +0900 @@ -0,0 +1,8 @@ + subroutine pydatawrapper + external pydata + call pydatadummysub(pydata) + return + end + subroutine pydatadummysub(a) + return + end