/[PAMELA software]/gpamela/Makefile
ViewVC logotype

Diff of /gpamela/Makefile

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

revision 3.1.1.1 by cafagna, Thu Jul 11 16:01:58 2002 UTC revision 3.7 by pamela, Thu Jul 21 13:23:43 2005 UTC
# Line 2  Line 2 
2  # Steering Makefile to create gpamelaX11 and gpamela executable  # Steering Makefile to create gpamelaX11 and gpamela executable
3  # First of all define the src files. One for each subdirectory  # First of all define the src files. One for each subdirectory
4  #  #
5    # some addition
6  GPAMELASRCS= gpamela/ffuser.F gpamela/gdraws.F gpamela/gpadigi.F \  GPAMELASRCS= gpamela/ffuser.F gpamela/gdraws.F gpamela/gpadigi.F \
7          gpamela/gpal.F gpamela/gpdat.F \          gpamela/gpal.F gpamela/gpdat.F \
8          gpamela/gpffr.F gpamela/gpfil.F gpamela/gpgaus.F \          gpamela/gpffr.F gpamela/gpfil.F gpamela/gpgaus.F \
# Line 22  GPAMELASRCS= gpamela/ffuser.F gpamela/gd Line 23  GPAMELASRCS= gpamela/ffuser.F gpamela/gd
23          gpamela/guphad.F gpamela/gustep.F \          gpamela/guphad.F gpamela/gustep.F \
24          gpamela/gutrak.F gpamela/gutrev.F \          gpamela/gutrak.F gpamela/gutrev.F \
25          gpamela/gviewyz.F gpamela/n2g.F \          gpamela/gviewyz.F gpamela/n2g.F \
26          gpamela/uginit.F gpamela/uglast.F          gpamela/uginit.F gpamela/uglast.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
# Line 61  GPLIB = ${GPLIBDIR}/libgarfield-7.a Line 62  GPLIB = ${GPLIBDIR}/libgarfield-7.a
62  #  #
63  BIN = ./bin  BIN = ./bin
64  AUX = ./aux  AUX = ./aux
65  AUXFILES = ${AUX}/gpfield.rz ${AUX}/GPAMELA.FFR ${AUX}/TRD_ATT.DAT ${AUX}/PROVA.GAR  AUXFILES = ${AUX}/gpfield.rz ${AUX}/GPAMELA.FFR ${AUX}/TRD_ATT.DAT ${AUX}/GARFIELD.GAR \
66    $(AUX)/xe_80_co2_20.gas
67  GARFIELDSRC = ./garfield/src  GARFIELDSRC = ./garfield/src
68  #  #
69  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \  INTERFLAGS = -DGPAMELA_UNIX -DGPAMELA_TYPE -DGPAMELA_X11 -DGPAMELA_INTER -DGPAMELA_HIGZ \
# Line 73  FC = g77 Line 75  FC = g77
75  DEBFLAGS =  -g -fdebug-kludge  DEBFLAGS =  -g -fdebug-kludge
76  FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${BATCHFLAGS}  FFLAGS = -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${BATCHFLAGS}
77  LDFLAGS= ${GPLIB} ${CERNLIB}  LDFLAGS= ${GPLIB} ${CERNLIB}
78  PHONY: distclean clean createdir install  
79    
80  gpamelax11.exe: FFLAGS =  -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${INTERFLAGS}  gpamelax11.exe: FFLAGS =  -fvxt -fno-automatic -Wno-globals -I${GPINC} -I${GEANTINC} ${INTERFLAGS}
81  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}
# Line 97  gpamelax11_deb.exe: createdir ${GPLIBDIR Line 99  gpamelax11_deb.exe: createdir ${GPLIBDIR
99          @rm -f ${GPOBJS) ${GPXINTOBJS}          @rm -f ${GPOBJS) ${GPXINTOBJS}
100    
101  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${GEANTINC} ${BATCHFLAGS}
102  gpamela_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPXINTSRCS} ${GPXINTOBJS} ${GPXINTDEPENDS}  gpamela_deb.exe: createdir ${GPLIBDIR}/libgarfield-7.a ${GPSRCS} ${GPOBJS} ${GPDEPENDS}  ${GPMAINSRCS} ${GPMAINOBJS} ${GPMAINDEPENDS}
103          @echo Creating $@ .....          @echo Creating $@ .....
104          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPXINTOBJS} ${LDFLAGS}          $(FC) -o ${BIN}/$@ ${GPOBJS} ${GPMAINOBJS} ${LDFLAGS}
105          @echo Removing object files .....          @echo Removing object files .....
106          @rm -f ${GPOBJS) ${GPXINTOBJS}          @rm -f ${GPOBJS) ${GPMAINOBJS}
107    
108  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS} ${GPDEPENDS}  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS} ${GPDEPENDS}
109    
# Line 111  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS Line 113  depend: ${GPXINTDEPENDS} ${GPMAINDEPENDS
113                  | sed '\''s/\($(*F)\)\.o[ :]*/ $(*D)\/\1.o $(*D)\/$(*F)\.d : /g'\'' > $@; \                  | sed '\''s/\($(*F)\)\.o[ :]*/ $(*D)\/\1.o $(*D)\/$(*F)\.d : /g'\'' > $@; \
114                  [ -s $@ ] || rm -f $@'                  [ -s $@ ] || rm -f $@'
115    
116    .PHONY: distclean clean createdir install
117  # Move binaries from the local repository to the official repositories  # Move binaries from the local repository to the official repositories
118  install :  install :
119          @test -d "$(GPAMELA_BIN)" && \          @test -d "$(GPAMELA_BIN)" && \

Legend:
Removed from v.3.1.1.1  
changed lines
  Added in v.3.7

  ViewVC Help
Powered by ViewVC 1.1.23