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 \ |
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 |
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 \ |
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} |
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 |
|
|
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)" && \ |