/[PAMELA software]/gpamela/Makefile
ViewVC logotype

Diff of /gpamela/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3.8 by cafagna, Mon Jul 25 11:53:19 2005 UTC revision 3.12 by cafagna, Wed Dec 14 03:00:37 2005 UTC
# Line 22  GPAMELASRCS= gpamela/ffuser.F gpamela/gd Line 22  GPAMELASRCS= gpamela/ffuser.F gpamela/gd
22          gpamela/guphad.F gpamela/gustep.F \          gpamela/guphad.F gpamela/gustep.F \
23          gpamela/gutrak.F gpamela/gutrev.F \          gpamela/gutrak.F gpamela/gutrev.F \
24          gpamela/gviewyz.F gpamela/n2g.F \          gpamela/gviewyz.F gpamela/n2g.F \
25          gpamela/uginit.F gpamela/uglast.F          gpamela/uginit.F gpamela/uglast.F \
26            gpamela/gprnhran.F
27  GPCALSRCS = gpcal/gpcalv.F gpcal/gpce.F gpcal/gpdcal.F \  GPCALSRCS = gpcal/gpcalv.F gpcal/gpce.F gpcal/gpdcal.F \
28          gpcal/gpg10c.F gpcal/gpg10.F gpcal/gpsica.F \          gpcal/gpg10c.F gpcal/gpg10.F gpcal/gpsica.F \
29          gpcal/gpucal.F gpcal/gpw2.F gpcal/gpw.F          gpcal/gpucal.F gpcal/gpw2.F gpcal/gpw.F
30  GPCASSRCS = gpcas/gpcasv.F gpcas/gpdcas.F gpcas/gpucas.F  GPCASSRCS = gpcas/gpcasv.F gpcas/gpdcas.F gpcas/gpucas.F
31  GPCATSRCS = gpcat/gpcatv.F gpcat/gpdcat.F gpcat/gpucat.F  GPCATSRCS = gpcat/gpcatv.F gpcat/gpdcat.F gpcat/gpucat.F
32  GPFIELDSRCS = gpfield/flin3.F gpfield/gufld.F  GPFIELDSRCS = gpfield/flin3.F gpfield/gufld.F gpfield/gprbi.F \
33            gpfield/inter_B.F gpfield/inter_B_inner.F
34  GPGARSRCS = gpgar/gpgacl.F  gpgar/gpgapart.F gpgar/gpgarin.F \  GPGARSRCS = gpgar/gpgacl.F  gpgar/gpgapart.F gpgar/gpgarin.F \
35          gpgar/gpgarsel.F gpgar/gptogar.F gpgar/grinit.F          gpgar/gpgarsel.F gpgar/gptogar.F gpgar/grinit.F
36  GPHYSSRCSRCS = gphys/gfluct.F  GPHYSSRCSRCS = gphys/gfluct.F
37  GPMAINSRCS = gpmain/gpmain.F  GPMAINSRCS = gpmain/gpmain.F
38  GPSPESRCS  = gpspe/gpcp.F gpspe/gpdspe.F gpspe/gpfe.F \  GPSPESRCS  = gpspe/gpcp.F gpspe/gpdspe.F gpspe/gpfe.F \
39          gpspe/gpkap.F gpspe/gpmaspe.F gpspe/gproa.F \          gpspe/gpkap.F gpspe/gpmaspe.F gpspe/gproa.F \
40          gpspe/gpsitr.F gpspe/gpspema.F gpspe/gpspev.F gpspe/gpuspe.F          gpspe/gpsitr.F gpspe/gpspema.F gpspe/gpspev.F gpspe/gpuspe.F \
41            gpspe/gprspe.F
42  GPTOFSRCS = gptof/gpdtof.F gptof/gpscin.F gptof/gpscint.F \  GPTOFSRCS = gptof/gpdtof.F gptof/gpscin.F gptof/gpscint.F \
43          gptof/gptofv.F gptof/gputof.F          gptof/gptofv.F gptof/gputof.F
44  GPTRDSRCS = gptrd/gpdtrd.F gptrd/gptrad.F gptrd/gptrdv.F \  GPTRDSRCS = gptrd/gpdtrd.F gptrd/gptrad.F gptrd/gptrdv.F \
# Line 43  GPTRDSRCS = gptrd/gpdtrd.F gptrd/gptrad. Line 46  GPTRDSRCS = gptrd/gpdtrd.F gptrd/gptrad.
46          gptrd/npoiss.F gptrd/xescape.F gptrd/xtrinteg.F \          gptrd/npoiss.F gptrd/xescape.F gptrd/xtrinteg.F \
47          gptrd/xtrinter.F gptrd/xtryield.F          gptrd/xtrinter.F gptrd/xtryield.F
48  GPXINTSRCS = gpxint/gxint.F gpxint/qnext.F  GPXINTSRCS = gpxint/gxint.F gpxint/qnext.F
49    GPNDSRCS = gpnd/gpndv.F
50    GPCALORSRC = gpcalor/gpcalor.F
51  #  #
52  GPSRCS = $(GPAMELASRCS) $(GPCALSRCS) $(GPCASSRCS) $(GPCATSRCS) $(GPFIELDSRCS)  $(GPGARSRCS) $(GPHYSSRCS) \  GPSRCS = $(GPAMELASRCS) $(GPCALSRCS) $(GPCASSRCS) $(GPCATSRCS) $(GPFIELDSRCS)  $(GPGARSRCS) $(GPHYSSRCS) \
53          $(GPSPESRCS) $(GPTOFSRCS) $(GPTRDSRCS)          $(GPSPESRCS) $(GPTOFSRCS) $(GPTRDSRCS) $(GPNDSRCS) $(GPCALORSRC)
54  GPOBJS =$(addsuffix .o,$(basename ${GPSRCS}) )  GPOBJS =$(addsuffix .o,$(basename ${GPSRCS}) )
55  GPDEPENDS =$(GPOBJS:.o=.d)  GPDEPENDS =$(GPOBJS:.o=.d)
56  GPMAINOBJS =$(addsuffix .o,$(basename ${GPMAINSRCS}) )  GPMAINOBJS =$(addsuffix .o,$(basename ${GPMAINSRCS}) )
# Line 55  GPXINTDEPENDS =$(GPXINTOBJS:.o=.d) Line 60  GPXINTDEPENDS =$(GPXINTOBJS:.o=.d)
60  #  #
61  GEANTINC = gcdes  GEANTINC = gcdes
62  GPINC = gpcdes  GPINC = gpcdes
63    GPCALORINC = gpcalordes
64  CERNLIB = `cernlib geant,genlib,pawlib,graflib/X11,packlib,mathlib`  CERNLIB = `cernlib geant,genlib,pawlib,graflib/X11,packlib,mathlib`
65  GPLIBDIR = ./lib  GPLIBDIR = ./lib
66  GPLIB = ${GPLIBDIR}/libgarfield-7.a  GPLIB = ${GPLIBDIR}/libgarfield-7.a
67  #  #
68  BIN = ./bin  BIN = ./bin
69  AUX = ./aux  AUX = ./aux
70  AUXFILES = ${AUX}/gpfield.rz ${AUX}/GPAMELA.FFR ${AUX}/TRD_ATT.DAT ${AUX}/GARFIELD.GAR \  AUXFILES = ${AUX}/gpfield.rz ${AUX}/GPAMELA.FFR ${AUX}/TRD_ATT.DAT ${AUX}/GARFIELD.GAR \
71  $(AUX)/xe_80_co2_20.gas          ${AUX}/xe_80_co2_20.gas ${AUX}/measure_n3_290302.rz ${AUX}/measure_n4_110402_corrected.rz \
72            ${AUX}/resxy_new.rz ${AUX}/INPUTSEED.DAT ${AUX}/readseeds.f ${AUX}/writeseeds.f \
73            ${AUX}/chetc.dat.gz ${AUX}/xsneut.dat.gz
74  GARFIELDSRC = ./garfield/src  GARFIELDSRC = ./garfield/src
75  #  #
76  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \
# Line 72  BATCHFLAGS = -DGPAMELA_UNIX -DGPAMELA_TY Line 80  BATCHFLAGS = -DGPAMELA_UNIX -DGPAMELA_TY
80  CC = gcc  CC = gcc
81  FC = g77  FC = g77
82  DEBFLAGS =  -g -fdebug-kludge  DEBFLAGS =  -g -fdebug-kludge
83  FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${BATCHFLAGS}  FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I$(GPCALORINC) -I${GEANTINC} ${BATCHFLAGS}
84  LDFLAGS= ${GPLIB} ${CERNLIB}  LDFLAGS= ${GPLIB} ${CERNLIB} -Xlinker -Map -Xlinker $@.map
85    
86    
87  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}
88  gpamelax11.exe: createdir  ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS}  gpamelax11.exe: createdir  ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS}
89          @echo Creating $@ .....          @echo Creating $@ .....
90          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}
91          @echo Removing object files .....          @echo Removing object files .....
92          @rm -f ${GPOBJS} ${GPXINTOBJS}          @rm -f ${GPOBJS} ${GPXINTOBJS}
93    
94  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}
95  gpamela.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS}  ${GPDEPENDS} ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS}  gpamela.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS}  ${GPDEPENDS} ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS}
96          @echo Creating $@ .....          @echo Creating $@ .....
97          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}
98          @echo Removing object files .....          @echo Removing object files .....
99          @rm -f ${GPOBJS} ${GPMAINOBJS}          @rm -f ${GPOBJS} ${GPMAINOBJS}
100    
101  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}
102    gpamelax11_deb.exe: LDFLAGS= ${GPLIB} ${CERNLIB} ${DEBFLAGS}
103  gpamelax11_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS}  gpamelax11_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS}
104          @echo Creating $@ .....          @echo Creating $@ .....
105          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}
106          @echo Removing object files .....          @echo Removing object files .....
107          @rm -f ${GPOBJS) ${GPXINTOBJS}          @rm -f ${GPOBJS) ${GPXINTOBJS}
108    
109  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}
110    gpamelax_deb.exe: LDFLAGS= ${GPLIB} ${CERNLIB} ${DEBFLAGS}
111  gpamela_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS}  gpamela_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS}
112          @echo Creating $@ .....          @echo Creating $@ .....
113          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}
# Line 117  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS Line 127  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS
127  install :  install :
128          @test -d "$(GPAMELA_BIN)" && \          @test -d "$(GPAMELA_BIN)" && \
129          (echo "Now moving executable and auxiliary files to $(GPAMELA_BIN)"; \          (echo "Now moving executable and auxiliary files to $(GPAMELA_BIN)"; \
130           mv -f $(BIN)/*.exe $(GPAMELA_BIN)/. ; cp -f ${AUXFILES} $(GPAMELA_BIN)/. )           mv -f $(BIN)/*.exe $(GPAMELA_BIN)/. ; cp  ${AUXFILES} $(GPAMELA_BIN)/.; \
131            echo "Now unzipping the GCALOR cross section data files"; gzip -dv xsneut.dat.gz chetc.dat.gz)
132    
133  ${GPLIBDIR}/libgarfield-7.a:    ${GPLIBDIR}/libgarfield-7.a:  
134          @echo Creating  libgarfield-7.a it will take few minutes .....          @echo Creating  libgarfield-7.a it will take few minutes .....

Legend:
Removed from v.3.8  
changed lines
  Added in v.3.12

  ViewVC Help
Powered by ViewVC 1.1.23