/[PAMELA software]/gpamela/Makefile
ViewVC logotype

Diff of /gpamela/Makefile

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

revision 3.6 by cafagna, Tue Jun 21 09:24:46 2005 UTC revision 3.18 by pam-ba, Thu May 18 10:52:31 2006 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  GPCARDSRCS = gpcard/gpcardv.F gpcard/gpdcard.F gpcard/gpucard.F
33    GPFIELDSRCS = gpfield/flin3.F gpfield/gufld.F gpfield/gprbi.F \
34            gpfield/inter_B.F gpfield/inter_B_inner.F gpfield/inter_B_outer.F
35  GPGARSRCS = gpgar/gpgacl.F  gpgar/gpgapart.F gpgar/gpgarin.F \  GPGARSRCS = gpgar/gpgacl.F  gpgar/gpgapart.F gpgar/gpgarin.F \
36          gpgar/gpgarsel.F gpgar/gptogar.F gpgar/grinit.F          gpgar/gpgarsel.F gpgar/gptogar.F gpgar/grinit.F
37  GPHYSSRCSRCS = gphys/gfluct.F  GPHYSSRCSRCS = gphys/gfluct.F
38  GPMAINSRCS = gpmain/gpmain.F  GPMAINSRCS = gpmain/gpmain.F
39  GPSPESRCS  = gpspe/gpcp.F gpspe/gpdspe.F gpspe/gpfe.F \  GPSPESRCS  = gpspe/gpcp.F gpspe/gpdspe.F gpspe/gpfe.F \
40          gpspe/gpkap.F gpspe/gpmaspe.F gpspe/gproa.F \          gpspe/gpkap.F gpspe/gpmaspe.F gpspe/gproa.F \
41          gpspe/gpsitr.F gpspe/gpspema.F gpspe/gpspev.F gpspe/gpuspe.F          gpspe/gpsitr.F gpspe/gpspema.F gpspe/gpspev.F gpspe/gpuspe.F \
42            gpspe/gprspe.F gpspe/gpudiffusion.F gpspe/gpucollection.F
43  GPTOFSRCS = gptof/gpdtof.F gptof/gpscin.F gptof/gpscint.F \  GPTOFSRCS = gptof/gpdtof.F gptof/gpscin.F gptof/gpscint.F \
44          gptof/gptofv.F gptof/gputof.F          gptof/gptofv.F gptof/gputof.F gptof/gpmyl.F gptof/gppol.F
45  GPTRDSRCS = gptrd/gpdtrd.F gptrd/gptrad.F gptrd/gptrdv.F \  GPTRDSRCS = gptrd/gpdtrd.F gptrd/gptrad.F gptrd/gptrdv.F \
46          gptrd/gputrd.F gptrd/gpxe.F gptrd/gpxtr.F \          gptrd/gputrd.F gptrd/gpxe.F gptrd/gpxtr.F \
47          gptrd/npoiss.F gptrd/xescape.F gptrd/xtrinteg.F \          gptrd/npoiss.F gptrd/xescape.F gptrd/xtrinteg.F \
48          gptrd/xtrinter.F gptrd/xtryield.F          gptrd/xtrinter.F gptrd/xtryield.F
49  GPXINTSRCS = gpxint/gxint.F gpxint/qnext.F  GPXINTSRCS = gpxint/gxint.F gpxint/qnext.F
50    GPNDSRCS = gpnd/gpndv.F gpnd/gpgigp.F gpnd/gpund.F gpnd/gpdnd.F gpnd/gpgig.F
51    GPCALORSRC = gpcalor/gpcalor.F
52  #  #
53  GPSRCS = $(GPAMELASRCS) $(GPCALSRCS) $(GPCASSRCS) $(GPCATSRCS) $(GPFIELDSRCS)  $(GPGARSRCS) $(GPHYSSRCS) \  GPSRCS = $(GPAMELASRCS) $(GPCALSRCS) $(GPCASSRCS) $(GPCATSRCS) $(GPCARDSRCS) \
54          $(GPSPESRCS) $(GPTOFSRCS) $(GPTRDSRCS)          $(GPFIELDSRCS)  $(GPGARSRCS) $(GPHYSSRCS) \
55            $(GPSPESRCS) $(GPTOFSRCS) $(GPNDSRCS) $(GPTRDSRCS)  $(GPCALORSRC)
56  GPOBJS =$(addsuffix .o,$(basename ${GPSRCS}) )  GPOBJS =$(addsuffix .o,$(basename ${GPSRCS}) )
57  GPDEPENDS =$(GPOBJS:.o=.d)  GPDEPENDS =$(GPOBJS:.o=.d)
58  GPMAINOBJS =$(addsuffix .o,$(basename ${GPMAINSRCS}) )  GPMAINOBJS =$(addsuffix .o,$(basename ${GPMAINSRCS}) )
# Line 55  GPXINTDEPENDS =$(GPXINTOBJS:.o=.d) Line 62  GPXINTDEPENDS =$(GPXINTOBJS:.o=.d)
62  #  #
63  GEANTINC = gcdes  GEANTINC = gcdes
64  GPINC = gpcdes  GPINC = gpcdes
65    GPCALORINC = gpcalordes
66  CERNLIB = `cernlib geant,genlib,pawlib,graflib/X11,packlib,mathlib`  CERNLIB = `cernlib geant,genlib,pawlib,graflib/X11,packlib,mathlib`
67  GPLIBDIR = ./lib  GPLIBDIR = ./lib
68  GPLIB = ${GPLIBDIR}/libgarfield-7.a  GPLIB = ${GPLIBDIR}/libgarfield-7.a
69  #  #
70  BIN = ./bin  BIN = ./bin
71  AUX = ./aux  AUX = ./aux
72  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 \
73  $(AUX)/xe_80_co2_20.gas          ${AUX}/xe_80_co2_20.gas ${AUX}/measure_n3_290302.rz ${AUX}/measure_n4_110402_corrected.rz \
74            ${AUX}/resxy_new.rz ${AUX}/INPUTSEED.DAT ${AUX}/readseeds.f ${AUX}/writeseeds.f \
75            ${AUX}/chetc.dat.gz ${AUX}/xsneut.dat.gz ${AUX}/external_top_map_n4_150402.rz
76  GARFIELDSRC = ./garfield/src  GARFIELDSRC = ./garfield/src
77  #  #
78  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \
# Line 70  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TY Line 80  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TY
80  BATCHFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_GARFIELD  -DGPAMELA_MANYWIRE  -DGPAMELA_LONGLIST  -DGPAMELA_BIGMAP  BATCHFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_GARFIELD  -DGPAMELA_MANYWIRE  -DGPAMELA_LONGLIST  -DGPAMELA_BIGMAP
81  #  #
82  CC = gcc  CC = gcc
83  FC = g77  #FC = g77 -ffortran-bounds-check
84    FC = g77
85  DEBFLAGS =  -g -fdebug-kludge  DEBFLAGS =  -g -fdebug-kludge
86  FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${BATCHFLAGS}  FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I$(GPCALORINC) -I${GEANTINC} ${BATCHFLAGS}
87  LDFLAGS= ${GPLIB} ${CERNLIB}  LDFLAGS= ${GPLIB} ${CERNLIB} -Xlinker -Map -Xlinker $@.map
88    
89    
90  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}
91  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}
92          @echo Creating $@ .....          @echo Creating $@ .....
93          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}
94          @echo Removing object files .....          @echo Removing object files .....
95          @rm -f ${GPOBJS} ${GPXINTOBJS}          @rm -f ${GPOBJS} ${GPXINTOBJS}
96    
97  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}
98  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}
99          @echo Creating $@ .....          @echo Creating $@ .....
100          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}
101          @echo Removing object files .....          @echo Removing object files .....
102          @rm -f ${GPOBJS} ${GPMAINOBJS}          @rm -f ${GPOBJS} ${GPMAINOBJS}
103    
104  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}
105    gpamelax11_deb.exe: LDFLAGS= ${GPLIB} ${CERNLIB} ${DEBFLAGS}
106  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}
107          @echo Creating $@ .....          @echo Creating $@ .....
108          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}
109          @echo Removing object files .....          @echo Removing object files .....
110          @rm -f ${GPOBJS) ${GPXINTOBJS}          @rm -f ${GPOBJS) ${GPXINTOBJS}
111    
112  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}
113    gpamelax_deb.exe: LDFLAGS= ${GPLIB} ${CERNLIB} ${DEBFLAGS}
114  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}
115          @echo Creating $@ .....          @echo Creating $@ .....
116          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}
# Line 117  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS Line 130  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS
130  install :  install :
131          @test -d "$(GPAMELA_BIN)" && \          @test -d "$(GPAMELA_BIN)" && \
132          (echo "Now moving executable and auxiliary files to $(GPAMELA_BIN)"; \          (echo "Now moving executable and auxiliary files to $(GPAMELA_BIN)"; \
133           mv -f $(BIN)/*.exe $(GPAMELA_BIN)/. ; cp -f ${AUXFILES} $(GPAMELA_BIN)/. )           mv -f $(BIN)/*.exe $(GPAMELA_BIN)/. ; cp  ${AUXFILES} $(GPAMELA_BIN)/.;\
134            echo "Now unzipping the GCALOR cross section data files"; \
135            gzip -dv $(GPAMELA_BIN)/xsneut.dat.gz $(GPAMELA_BIN)/chetc.dat.gz)
136    
137  ${GPLIBDIR}/libgarfield-7.a:    ${GPLIBDIR}/libgarfield-7.a:  
138          @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.6  
changed lines
  Added in v.3.18

  ViewVC Help
Powered by ViewVC 1.1.23