--- gpamela/Makefile 2005/12/05 12:15:20 3.9 +++ gpamela/Makefile 2005/12/14 03:00:37 3.12 @@ -46,9 +46,11 @@ gptrd/npoiss.F gptrd/xescape.F gptrd/xtrinteg.F \ gptrd/xtrinter.F gptrd/xtryield.F GPXINTSRCS = gpxint/gxint.F gpxint/qnext.F +GPNDSRCS = gpnd/gpndv.F +GPCALORSRC = gpcalor/gpcalor.F # GPSRCS = $(GPAMELASRCS) $(GPCALSRCS) $(GPCASSRCS) $(GPCATSRCS) $(GPFIELDSRCS) $(GPGARSRCS) $(GPHYSSRCS) \ - $(GPSPESRCS) $(GPTOFSRCS) $(GPTRDSRCS) + $(GPSPESRCS) $(GPTOFSRCS) $(GPTRDSRCS) $(GPNDSRCS) $(GPCALORSRC) GPOBJS =$(addsuffix .o,$(basename ${GPSRCS}) ) GPDEPENDS =$(GPOBJS:.o=.d) GPMAINOBJS =$(addsuffix .o,$(basename ${GPMAINSRCS}) ) @@ -58,6 +60,7 @@ # GEANTINC = gcdes GPINC = gpcdes +GPCALORINC = gpcalordes CERNLIB = `cernlib geant,genlib,pawlib,graflib/X11,packlib,mathlib` GPLIBDIR = ./lib GPLIB = ${GPLIBDIR}/libgarfield-7.a @@ -65,7 +68,9 @@ BIN = ./bin AUX = ./aux AUXFILES = ${AUX}/gpfield.rz ${AUX}/GPAMELA.FFR ${AUX}/TRD_ATT.DAT ${AUX}/GARFIELD.GAR \ -$(AUX)/xe_80_co2_20.gas $(AUX)/measure_n3_290302.rz $(AUX)/measure_n4_110402_corrected.rz $(AUX)/resxy_new.rz + ${AUX}/xe_80_co2_20.gas ${AUX}/measure_n3_290302.rz ${AUX}/measure_n4_110402_corrected.rz \ + ${AUX}/resxy_new.rz ${AUX}/INPUTSEED.DAT ${AUX}/readseeds.f ${AUX}/writeseeds.f \ + ${AUX}/chetc.dat.gz ${AUX}/xsneut.dat.gz GARFIELDSRC = ./garfield/src # INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \ @@ -75,32 +80,34 @@ CC = gcc FC = g77 DEBFLAGS = -g -fdebug-kludge -FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${BATCHFLAGS} -LDFLAGS= ${GPLIB} ${CERNLIB} +FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I$(GPCALORINC) -I${GEANTINC} ${BATCHFLAGS} +LDFLAGS= ${GPLIB} ${CERNLIB} -Xlinker -Map -Xlinker $@.map -gpamelax11.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${INTERFLAGS} +gpamelax11.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GPCALORINC} -I${GEANTINC} ${INTERFLAGS} gpamelax11.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS} ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS} @echo Creating $@ ..... $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS} @echo Removing object files ..... @rm -f ${GPOBJS} ${GPXINTOBJS} -gpamela.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${BATCHFLAGS} +gpamela.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GPCALORINC} -I${GEANTINC} ${BATCHFLAGS} gpamela.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS} ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS} @echo Creating $@ ..... $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS} @echo Removing object files ..... @rm -f ${GPOBJS} ${GPMAINOBJS} -gpamelax11_deb.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals ${DEBFLAGS} -I${GPINC} -I${GEANTINC} ${INTERFLAGS} +gpamelax11_deb.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals ${DEBFLAGS} -I${GPINC} -I${GPCALORINC} -I${GEANTINC} ${INTERFLAGS} +gpamelax11_deb.exe: LDFLAGS= ${GPLIB} ${CERNLIB} ${DEBFLAGS} gpamelax11_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS} ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS} @echo Creating $@ ..... $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS} @echo Removing object files ..... @rm -f ${GPOBJS) ${GPXINTOBJS} -gpamela_deb.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals ${DEBFLAGS} -I${GPINC} -I${GEANTINC} ${BATCHFLAGS} +gpamela_deb.exe: FFLAGS = -fvxt -fno-automatic -Wno-globals ${DEBFLAGS} -I${GPINC} -I${GPCALORINC} -I${GEANTINC} ${BATCHFLAGS} +gpamelax_deb.exe: LDFLAGS= ${GPLIB} ${CERNLIB} ${DEBFLAGS} gpamela_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS} ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS} @echo Creating $@ ..... $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS} @@ -120,7 +127,8 @@ install : @test -d "$(GPAMELA_BIN)" && \ (echo "Now moving executable and auxiliary files to $(GPAMELA_BIN)"; \ - mv -f $(BIN)/*.exe $(GPAMELA_BIN)/. ; cp -f ${AUXFILES} $(GPAMELA_BIN)/. ) + mv -f $(BIN)/*.exe $(GPAMELA_BIN)/. ; cp ${AUXFILES} $(GPAMELA_BIN)/.; \ + echo "Now unzipping the GCALOR cross section data files"; gzip -dv xsneut.dat.gz chetc.dat.gz) ${GPLIBDIR}/libgarfield-7.a: @echo Creating libgarfield-7.a it will take few minutes .....