File indexing completed on 2025-02-23 09:21:10
0001
0002
0003
0004
0005 name := pythia6_decayer
0006
0007 G4TARGET := $(name)
0008 G4EXLIB := true
0009 SUBDIRS := common
0010
0011 ifndef G4INSTALL
0012 G4INSTALL = ../../../../..
0013 endif
0014
0015 .PHONY: all makesub clean cleansub
0016 all: pythia6 makesub lib bin
0017
0018 EXTRALIBS = $(G4TMPDIR)/libPythia6.so
0019
0020 include $(G4INSTALL)/config/binmake.gmk
0021
0022 CPPFLAGS += -I./common/include
0023 CCFLAGS += -c
0024 FCFLAGS += -c
0025
0026 makesub:
0027 @for dir in $(SUBDIRS); do ( \
0028 echo Entering $$dir ... ; \
0029 cd $$dir; \
0030 $(MAKE) obj name=pythia6_decayer );\
0031 done
0032
0033 clean:: cleansub
0034
0035 cleansub:
0036 @for dir in $(SUBDIRS); do ( \
0037 echo Entering $$dir ...; \
0038 cd $$dir; \
0039 $(MAKE) clean );\
0040 done
0041
0042 visclean:
0043 rm -f g4*.prim g4*.eps g4*.wrl
0044 rm -f .DAWN_*
0045
0046 pythia6: $(G4TMPDIR)/libPythia6.so
0047
0048 $(G4TMPDIR)/libPythia6.so: $(G4TMPDIR)/pythia6.o $(G4TMPDIR)/pythia6_common_address.o
0049 $(FC) -shared -Wl,-soname,libPythia6.so -o $(G4TMPDIR)/libPythia6.so $(G4TMPDIR)/pythia6.o $(G4TMPDIR)/pythia6_common_address.o
0050
0051 $(G4TMPDIR)/pythia6.o:
0052 $(FC) $(FCFLAGS) $(PYTHIA6)/pythia-$(PYTHIA6_VERSION).f -o $(G4TMPDIR)/pythia6.o
0053
0054 $(G4TMPDIR)/pythia6_common_address.o:
0055 $(CC) $(CCFLAGS) src/pythia6_common_address.c -o $(G4TMPDIR)/pythia6_common_address.o
0056