diff --git a/KK2f/KKMakefile b/KK2f/KKMakefile index 71484a3..bdf67b5 100644 --- a/KK2f/KKMakefile +++ b/KK2f/KKMakefile @@ -1,15 +1,16 @@ COMMAND = COMMAND_OBJECTS = -LOCAL_LIB = KK2f.a +LOCAL_LIB = KK2f.a +SHARED_LIB = libKK2f.so LIB_OBJECTS = \ KK2f.o KarLud.o YFSini2.o \ KarFin.o QED3.o CEEX.o GPS.o BVR.o \ PseuMar.o HepEvt.o KinLib.o ReaData.o \ Taupair.o Tauface.o RRes.o ############## What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARED_LIB) ############### -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran AR = ar cru RANLIB = ranlib @@ -33,6 +34,8 @@ RRes.o: RRes.h $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ *.a + rm -f *.o *.so; rm -f *.a; rm -f *~ *.a diff --git a/KK2f/makefile.templ b/KK2f/makefile.templ index bea9e64..0c819cf 100755 --- a/KK2f/makefile.templ +++ b/KK2f/makefile.templ @@ -1,13 +1,14 @@ COMMAND = COMMAND_OBJECTS = -LOCAL_LIB = KK2f.a +LOCAL_LIB = KK2f.a +SHARED_LIB = libKK2f.so LIB_OBJECTS = \ KK2f.o KarLud.o YFSini2.o \ KarFin.o QED3.o CEEX.o GPS.o BVR.o \ PseuMar.o HepEvt.o KinLib.o ReaData.o \ Taupair.o Tauface.o RRes.o ############## What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARED_LIB) ############### FFLAGS = F77 = @@ -33,6 +34,8 @@ RRes.o: RRes.h $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ *.a + rm -f *.o *.so; rm -f *.a; rm -f *~ *.a diff --git a/KKsem/KKMakefile b/KKsem/KKMakefile index ad7d1b1..b4b8173 100644 --- a/KKsem/KKMakefile +++ b/KKsem/KKMakefile @@ -1,9 +1,10 @@ LOCAL_LIB = KKsem.a +SHARED_LIB = libKKsem.so LIB_OBJECTS = KKsem.o plotlib.o readat.o ############## What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARED_LIB) ############### -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran AR = ar RANLIB = ranlib @@ -17,8 +18,10 @@ KKsem.f: KKsem.h $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) rv $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ + rm -f *.o *.so; rm -f *.a; rm -f *~ Clean: clean rm -f *.o; rm -f *.a; rm -f *~ ############################# diff --git a/KKsem/makefile.templ b/KKsem/makefile.templ index a39702e..5376fcd 100755 --- a/KKsem/makefile.templ +++ b/KKsem/makefile.templ @@ -1,7 +1,8 @@ LOCAL_LIB = KKsem.a +SHARED_LIB = libKKsem.so LIB_OBJECTS = KKsem.o plotlib.o readat.o ############## What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARED_LIB) ############### FFLAGS = F77 = @@ -17,8 +18,10 @@ KKsem.f: KKsem.h $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) rv $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ + rm -f *.o *.so; rm -f *.a; rm -f *~ Clean: clean rm -f *.o; rm -f *.a; rm -f *~ ############################# diff --git a/bornv/KKMakefile b/bornv/KKMakefile index e90f8a1..28f2cd4 100644 --- a/bornv/KKMakefile +++ b/bornv/KKMakefile @@ -4,10 +4,12 @@ ##################################################################### LOCAL_LIBa = bornv-tabs.a LOCAL_LIBd = bornv-dizet.a -all: $(LOCAL_LIBa) $(LOCAL_LIBd) +SHARE_LIBa = libbornvtabs.so +SHARE_LIBd = libbornvdizet.so +all: $(LOCAL_LIBa) $(LOCAL_LIBd) $(SHARE_LIBa) $(SHARE_LIBd) ##################################################################### ##################################################################### -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran AR = ar cru RANLIB = ranlib @@ -27,6 +29,10 @@ $(LOCAL_LIBa): $(LIB_OBJECTSa) $(LIB_OBJECTS2) $(LOCAL_LIBd): $(LIB_OBJECTSd) $(LIB_OBJECTS2) $(AR) $(LOCAL_LIBd) $(LIB_OBJECTSd) $(LIB_OBJECTS2) $(RANLIB) $(LOCAL_LIBd) +$(SHARE_LIBa): $(LIB_OBJECTSa) $(LIB_OBJECTS2) + $(LD) -shared -o $(SHARE_LIBa) $(LIB_OBJECTSa) $(LIB_OBJECTS2) +$(SHARE_LIBd): $(LIB_OBJECTSd) $(LIB_OBJECTS2) + $(LD) -shared -o $(SHARE_LIBd) $(LIB_OBJECTSd) $(LIB_OBJECTS2) # BornV.f: BornV.h BornV_StartEW.f: BornV.h @@ -48,5 +54,5 @@ foam: (sed -e 's#FoamA#FoamC#'g FoamA.f > FoamC.f) ############################################################################## clean: - rm -f *.o *.a *~ *.exe + rm -f *.o *.so *.a *~ *.exe ############################################################################## diff --git a/bornv/makefile.templ b/bornv/makefile.templ index 90acf41..5fd4000 100755 --- a/bornv/makefile.templ +++ b/bornv/makefile.templ @@ -4,7 +4,9 @@ ##################################################################### LOCAL_LIBa = bornv-tabs.a LOCAL_LIBd = bornv-dizet.a -all: $(LOCAL_LIBa) $(LOCAL_LIBd) +SHARE_LIBa = libbornvtabs.so +SHARE_LIBd = libbornvdizet.so +all: $(LOCAL_LIBa) $(LOCAL_LIBd) $(SHARE_LIBa) $(SHARE_LIBd) ##################################################################### ##################################################################### FFLAGS = @@ -27,6 +29,10 @@ $(LOCAL_LIBa): $(LIB_OBJECTSa) $(LIB_OBJECTS2) $(LOCAL_LIBd): $(LIB_OBJECTSd) $(LIB_OBJECTS2) $(AR) $(LOCAL_LIBd) $(LIB_OBJECTSd) $(LIB_OBJECTS2) $(RANLIB) $(LOCAL_LIBd) +$(SHARE_LIBa): $(LIB_OBJECTSa) $(LIB_OBJECTS2) + $(LD) -shared -o $(SHARE_LIBa) $(LIB_OBJECTSa) $(LIB_OBJECTS2) +$(SHARE_LIBd): $(LIB_OBJECTSd) $(LIB_OBJECTS2) + $(LD) -shared -o $(SHARE_LIBd) $(LIB_OBJECTSd) $(LIB_OBJECTS2) # BornV.f: BornV.h BornV_StartEW.f: BornV.h @@ -48,5 +54,5 @@ foam: (sed -e 's#FoamA#FoamC#'g FoamA.f > FoamC.f) ############################################################################## clean: - rm -f *.o *.a *~ *.exe + rm -f *.o *.so *.a *~ *.exe ############################################################################## diff --git a/dizet-6.45/KKMakefile b/dizet-6.45/KKMakefile index 488f1da..ac423e0 100644 --- a/dizet-6.45/KKMakefile +++ b/dizet-6.45/KKMakefile @@ -1,9 +1,9 @@ ##################################################################### # make table.all ##################################################################### -all: dizet.a +all: $(LOCAL_LIB) $(SHARE_LIB) ##################################################################### -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran AR = ar RANLIB = ranlib @@ -13,12 +13,15 @@ LD = $(F77) $(F77) $(FFLAGS) -c $< ##################################################################### LOCAL_LIB = dizet.a +SHARE_LIB = libdizet.so #####LIB_OBJECTS = DZface.o dzero.o dizet5_0.o #####LIB_OBJECTS = DZface.o BornV_StartEW.o dizet6_05.o zf514_aux.o bcqcdl5_14.o bkqcdl5_14.o m2tcor5_11.o LIB_OBJECTS = DZface.o BornV_StartEW.o hadr5n95.o hadr5n16.o hadr5n17.o zfmai6_42.o zfusr6_44.o zfbib6_40.o dizet6_45.o APV_lib.o acol6_1p.o m2tcor5_11.o pairho6_40.o funang6_30.o expifi6_30.o bcqcdl5_14.o bkqcdl5_14.o bhang4_640.o zf630_aux.o $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) rv $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARE_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARE_LIB) $(LIB_OBJECTS) ########################################################################## ########################################################################## COMMAND1 = TabMain.exe diff --git a/dizet-6.45/makefile.templ b/dizet-6.45/makefile.templ index be88257..3496ee3 100644 --- a/dizet-6.45/makefile.templ +++ b/dizet-6.45/makefile.templ @@ -1,7 +1,7 @@ ##################################################################### # make table.all ##################################################################### -all: dizet.a +all: $(LOCAL_LIB) $(SHARE_LIB) ##################################################################### FFLAGS = F77 = @@ -13,12 +13,15 @@ LD = $(F77) $(F77) $(FFLAGS) -c $< ##################################################################### LOCAL_LIB = dizet.a +SHARE_LIB = libdizet.so #####LIB_OBJECTS = DZface.o dzero.o dizet5_0.o #####LIB_OBJECTS = DZface.o BornV_StartEW.o dizet6_05.o zf514_aux.o bcqcdl5_14.o bkqcdl5_14.o m2tcor5_11.o LIB_OBJECTS = DZface.o BornV_StartEW.o hadr5n95.o hadr5n16.o hadr5n17.o zfmai6_42.o zfusr6_44.o zfbib6_40.o dizet6_45.o APV_lib.o acol6_1p.o m2tcor5_11.o pairho6_40.o funang6_30.o expifi6_30.o bcqcdl5_14.o bkqcdl5_14.o bhang4_640.o zf630_aux.o $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) rv $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARE_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARE_LIB) $(LIB_OBJECTS) ########################################################################## ########################################################################## COMMAND1 = TabMain.exe diff --git a/ffbench/KKMakefile b/ffbench/KKMakefile index 64ca7de..e079d3b 100755 --- a/ffbench/KKMakefile +++ b/ffbench/KKMakefile @@ -41,7 +41,7 @@ all: demo-start #FFLAGS = -fno-automatic -ffixed-line-length-132 -fbackslash -C -O # sometime under linux g77 has to be used F77 = gfortran -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC LD = $(F77) AR = ar cru LDFLAGS = -lstdc++ @@ -66,6 +66,14 @@ EXT_SRC6 = ../photos/photos.f EXT_LIB7 = ../dizet/dizet.a EXT_SRC7 = ../dizet/*.f ../dizet/*.h ../bornv/*.h ########### +EXT_SHARELIB1 = ../KK2f/libKK2f.so +EXT_SHARELIB2 = ../glibk/libgk.so +EXT_SHARELIB3 = ../jetset/libjetset.so +EXT_SHARELIB4a = ../bornv/libbornvtabs.so +EXT_SHARELIB4d = ../bornv/libbornvdizet.so +EXT_SHARELIB5 = ../tauola/libglib.so +EXT_SHARELIB7 = ../dizet/libdizet.so +########### .f.o: $(F77) $(FFLAGS) -c $< $(EXT_LIB1): $(EXT_SRC1) @@ -89,8 +97,8 @@ $(EXT_LIB7): $(EXT_SRC7) EXT_LIBRARYa = $(EXT_LIB1) $(EXT_LIB2) $(EXT_LIB3) $(EXT_LIB4a) $(EXT_LIB5) $(EXT_LIB6) EXT_LIBRARYd = $(EXT_LIB1) $(EXT_LIB2) $(EXT_LIB3) $(EXT_LIB4d) $(EXT_LIB5) $(EXT_LIB6) $(EXT_LIB7) # Note that benchmark ouputs are for EXT_LIBRARYd -EXT_LIBRARY = $(EXT_LIBRARYa) # Dizet is NOT linked, look-up tables from disk are used -#EXT_LIBRARY = $(EXT_LIBRARYd) # Dizet is linked, tables created in-flight during initialization +#EXT_LIBRARY = $(EXT_LIBRARYa) # Dizet is NOT linked, look-up tables from disk are used +EXT_LIBRARY = $(EXT_LIBRARYd) # Dizet is linked, tables created in-flight during initialization #----------------------------------------------------------------------- # Link procedure COMMAND1 = ProdMC.exe @@ -108,6 +116,18 @@ OBJECTS3 = demo_R.o $(COMMAND3): $(OBJECTS3) $(EXT_LIBRARY) $(LD) -o $@ $(LDFLAGS) $(OBJECTS3) $(EXT_LIBRARY) `cernlib pawlib` #----------------------------------------------------------------------- +COMMAND4 = CMD.exe +OBJECTS4 = CMD.o +$(COMMAND4): $(OBJECTS4) $(EXT_LIBRARY) + $(LD) -o $@ $(LDFLAGS) $(OBJECTS4) $(EXT_LIBRARY) -lstdc++ +#----------------------------------------------------------------------- +COMMAND5 = TauolaMC.exe +OBJECTS5 = TauolaMC.o +$(COMMAND5): $(OBJECTS5) $(EXT_LIBRARY) + $(LD) -o $@ $(LDFLAGS) $(OBJECTS5) $(EXT_LIBRARY) -lstdc++ +#----------------------------------------------------------------------- +build: ${COMMAND1} ${COMMAND4} ${COMMAND5} +#----------------------------------------------------------------------- demo-start: $(COMMAND2) (cd ./demo; $(MAKE) start ) #----------------------------------------------------------------------- @@ -117,6 +137,7 @@ demo_R-start: $(COMMAND3) figinc-pdf: (cd Plots; $(MAKE) figinc-pdf) #----------------------------------------------------------------------- +compile: $(COMMAND1) Test-start: $(COMMAND1) (cd ./Test; $(MAKE) start ) Test-stop: diff --git a/ffbench/Plots/KKMakefile b/ffbench/Plots/KKMakefile index 01ae74a..c65cbb7 100644 --- a/ffbench/Plots/KKMakefile +++ b/ffbench/Plots/KKMakefile @@ -7,8 +7,8 @@ XDVI = kdvi -bg white -fg black -s 4 XPS = ghostview XPDF = xpdf #---------------------------------------------------------------------- -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash -LDFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC +LDFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran LD = $(F77) #---------------------------------------------------------------------- diff --git a/glibk/KKMakefile b/glibk/KKMakefile index 42965a7..f40a9f6 100644 --- a/glibk/KKMakefile +++ b/glibk/KKMakefile @@ -6,7 +6,8 @@ # in several storage files *.hst #============================================================================ ARLIB1 = glibk.a -all: $(ARLIB1) +SARLIB1 = libgk.so +all: $(ARLIB1) $(SARLIB1) ############################################################################## AR = ar RANLIB = ranlib @@ -15,7 +16,7 @@ AR = ar cru F77 = gfortran ############################################### # actual compilation flags -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC ############################################################################## .f.o: $(F77) $(FFLAGS) -c $< @@ -25,6 +26,8 @@ GLK.f: GLK.h OBJECT1 = GLK.o MathLib.o $(ARLIB1): $(OBJECT1) $(AR) $(ARLIB1) $(OBJECT1) +$(SARLIB1): $(OBJECT1) + $(LD) -shared -o $(SARLIB1) $(OBJECT1) #============================================================================ COMMAND = combine.exe OBJECTS = combine.o GLK.o @@ -33,7 +36,7 @@ $(COMMAND): $(OBJECTS) $(LD) -o $@ $(LDFLAGS) $(OBJECTS) ############################################################################## clean: - rm -f *.o *.a *~ *.exe lmap + rm -f *.o *.so *.a *~ *.exe lmap ############################################################################## @@ -51,7 +54,7 @@ clean: ###LIB_OBJECTS = glibk.o ############## What has to be built ###all: $(LOCAL_LIB) -###FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +###FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC ###F77 = f77 ###AR = ar ###RANLIB = ranlib diff --git a/glibk/makefile.templ b/glibk/makefile.templ index 23c1d86..c4bacbb 100755 --- a/glibk/makefile.templ +++ b/glibk/makefile.templ @@ -6,7 +6,8 @@ # in several storage files *.hst #============================================================================ ARLIB1 = glibk.a -all: $(ARLIB1) +SARLIB1 = libgk.so +all: $(ARLIB1) $(SARLIB1) ############################################################################## AR = ar RANLIB = ranlib @@ -25,6 +26,8 @@ GLK.f: GLK.h OBJECT1 = GLK.o MathLib.o $(ARLIB1): $(OBJECT1) $(AR) $(ARLIB1) $(OBJECT1) +$(SARLIB1): $(OBJECT1) + $(LD) -shared -o $(SARLIB1) $(OBJECT1) #============================================================================ COMMAND = combine.exe OBJECTS = combine.o GLK.o @@ -33,7 +36,7 @@ $(COMMAND): $(OBJECTS) $(LD) -o $@ $(LDFLAGS) $(OBJECTS) ############################################################################## clean: - rm -f *.o *.a *~ *.exe lmap + rm -f *.o *.so *.a *~ *.exe lmap ############################################################################## diff --git a/jetset/KKMakefile b/jetset/KKMakefile index 61496d7..565daa7 100644 --- a/jetset/KKMakefile +++ b/jetset/KKMakefile @@ -1,14 +1,15 @@ COMMAND = COMMAND_OBJECTS = LOCAL_LIB = jetset.a +SHARE_LIB = libjetset.so ########LIB_OBJECTS = jetset74.o ########LIB_OBJECTS = pythia6158.o LIB_OBJECTS = pythia6202.o #################################################### #------- What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARE_LIB) #################################################### -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran AR = ar cru RANLIB = ranlib @@ -18,5 +19,7 @@ LD = $(F77) $(F77) $(FFLAGS) -c $< $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) $(LOCAL_LIB) $(LIB_OBJECTS) +$(SHARE_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARE_LIB) $(LIB_OBJECTS) clean: - (rm -f *.o; rm -f *.a; rm -f *~ lmap) + (rm -f *.o *.so; rm -f *.a; rm -f *~ lmap) diff --git a/jetset/makefile.templ b/jetset/makefile.templ index d15c3f3..59e8ea8 100755 --- a/jetset/makefile.templ +++ b/jetset/makefile.templ @@ -1,12 +1,13 @@ COMMAND = COMMAND_OBJECTS = LOCAL_LIB = jetset.a +SHARE_LIB = libjetset.so ########LIB_OBJECTS = jetset74.o ########LIB_OBJECTS = pythia6158.o LIB_OBJECTS = pythia6202.o #################################################### #------- What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARE_LIB) #################################################### FFLAGS = F77 = @@ -18,5 +19,7 @@ LD = $(F77) $(F77) $(FFLAGS) -c $< $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) $(LOCAL_LIB) $(LIB_OBJECTS) +$(SHARE_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARE_LIB) $(LIB_OBJECTS) clean: - (rm -f *.o; rm -f *.a; rm -f *~ lmap) + (rm -f *.o *.so; rm -f *.a; rm -f *~ lmap) diff --git a/photos/KKMakefile b/photos/KKMakefile index 9a943fa..59ffec1 100644 --- a/photos/KKMakefile +++ b/photos/KKMakefile @@ -1,9 +1,10 @@ ########################################################### -LOCAL_LIB = glib.a +LOCAL_LIB = glib.a +SHARED_LIB = libglib.so LIB_OBJECTS = photos.o ############## What has to be built -all: $(LOCAL_LIB) -FFLAGS = -O -g -fno-second-underscore -fno-automatic -ffixed-line-length-132 -fbackslash +all: $(LOCAL_LIB) $(SHARED_LIB) +FFLAGS = -O -g -fno-automatic -ffixed-line-length-132 -fbackslash -std=legacy -fPIC F77 = gfortran AR = ar cru RANLIB = ranlib @@ -14,6 +15,8 @@ LD = $(F77) $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ + rm -f *.o *.so; rm -f *.a; rm -f *~ ########################################################### \ No newline at end of file diff --git a/photos/makefile.templ b/photos/makefile.templ index 8db980d..e17d5e5 100755 --- a/photos/makefile.templ +++ b/photos/makefile.templ @@ -1,8 +1,9 @@ ########################################################### -LOCAL_LIB = glib.a +LOCAL_LIB = glib.a +SHARED_LIB = libglib.so LIB_OBJECTS = photos.o ############## What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARED_LIB) FFLAGS = F77 = AR = @@ -14,6 +15,8 @@ LD = $(F77) $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ + rm -f *.o *.so; rm -f *.a; rm -f *~ ########################################################### \ No newline at end of file diff --git a/tauola/makefile.templ b/tauola/makefile.templ index cdaa8c9..498a50a 100644 --- a/tauola/makefile.templ +++ b/tauola/makefile.templ @@ -21,27 +21,28 @@ CC = g++ CFLAGS = -fPIC -Wall -Wno-write-strings LOCAL_LIB = glib.a +SHARED_LIB = libglib.so LIB_OBJECTS = formf.o tauola.o curr_cleo.o f3pi.o pkorb.o \ - new-currents/other-currents/frho_pi_belle.o \ - new-currents/RChL-currents/rcht_3pi/f3pi_rcht.o \ - new-currents/RChL-currents/rcht_3pi/funct_3pi.o \ - new-currents/RChL-currents/rcht_common/FA1RCHL.o \ - new-currents/RChL-currents/rcht_common/ffwid3pi.o \ - new-currents/RChL-currents/rcht_common/funct_rpt.o \ - new-currents/RChL-currents/rcht_common/gaus_integr.o \ - new-currents/RChL-currents/rcht_common/gfact.o \ - new-currents/RChL-currents/rcht_common/initA1Tab.o \ - new-currents/RChL-currents/rcht_common/initA1TabKKpi.o \ - new-currents/RChL-currents/rcht_common/value_parameter.o \ - new-currents/RChL-currents/rcht_common/wid_a1_fit.o \ - new-currents/RChL-currents/rcht_common/wid_a1_fitKKpi.o \ - new-currents/other-currents/binp.o \ - new-currents/other-currents/curr_karl.o \ - tauola-c/ChannelForTauolaInterface.o \ - tauola-c/channels_wrappers.o + new-currents/other-currents/frho_pi_belle.o \ + new-currents/RChL-currents/rcht_3pi/f3pi_rcht.o \ + new-currents/RChL-currents/rcht_3pi/funct_3pi.o \ + new-currents/RChL-currents/rcht_common/FA1RCHL.o \ + new-currents/RChL-currents/rcht_common/ffwid3pi.o \ + new-currents/RChL-currents/rcht_common/funct_rpt.o \ + new-currents/RChL-currents/rcht_common/gaus_integr.o \ + new-currents/RChL-currents/rcht_common/gfact.o \ + new-currents/RChL-currents/rcht_common/initA1Tab.o \ + new-currents/RChL-currents/rcht_common/initA1TabKKpi.o \ + new-currents/RChL-currents/rcht_common/value_parameter.o \ + new-currents/RChL-currents/rcht_common/wid_a1_fit.o \ + new-currents/RChL-currents/rcht_common/wid_a1_fitKKpi.o \ + new-currents/other-currents/binp.o \ + new-currents/other-currents/curr_karl.o \ + tauola-c/ChannelForTauolaInterface.o \ + tauola-c/channels_wrappers.o ############## What has to be built -all: $(LOCAL_LIB) +all: $(LOCAL_LIB) $(SHARED_LIB) .c.o: $(CC) $(CFLAGS) -c $< -o $@ @@ -50,8 +51,10 @@ all: $(LOCAL_LIB) $(LOCAL_LIB): $(LIB_OBJECTS) $(AR) rv $(LOCAL_LIB) $(LIB_OBJECTS) $(RANLIB) $(LOCAL_LIB) +$(SHARED_LIB): $(LIB_OBJECTS) + $(LD) -shared -o $(SHARED_LIB) $(LIB_OBJECTS) clean: - rm -f *.o; rm -f *.a; rm -f *~ tauola-c/*.o tauola-no-c/*.o + rm -f *.o *.so; rm -f *.a; rm -f *~ tauola-c/*.o tauola-no-c/*.o rm -f new-currents/other-currents/*.o new-currents/RChL-currents/*/*.o #######################################################