source: PSPA/parmelaPSPA/tags/v0.1/gmake-linux @ 101

Last change on this file since 101 was 101, checked in by garnier, 12 years ago

premier tag

  • Property svn:executable set to *
File size: 920 bytes
Line 
1#!//bin/ksh
2# gmake for machine alpha sous linux
3
4programe="parmela"
5
6for files in *.f
7do
8 objname="${files:%.f}"
9 echo $objname
10 objname=${objname}.o
11 liste=${liste}" ${files}" 
12#echo $liste
13 echo ${objname}:${files} >>temp1
14 echo "\t \$(FF) -c \$(FFLAGS) "${files} >>temp1
15
16 echo " ">>temp1
17done
18
19echo "${programe}: \$(OBJ)" >>temp1
20echo "\t \$(FF)  \$(FFLAGS) \$(OBJ) -o "${programe}"\$(VER)" >>temp1
21echo " " >>temp1
22echo "clean:" >>temp1
23echo "\t rm *.o">>temp1
24
25# ecriture dans le fichier de makefile definitif
26
27echo FF=g77 >>makefile
28#echo FFLAGS= -g -O4 -m32 -fno-second-underscore -funroll-loops -I. >>makefile
29echo FFLAGS= -O4 -m32 -fno-second-underscore -funroll-loops -I. >>makefile
30
31echo " " >>makefile
32
33echo "VER=linux" >>makefile
34
35echo " " >>makefile
36
37echo SRC=${liste} >>makefile
38echo " " >>makefile
39echo "OBJ=\$(SRC:.f=.o)" >>makefile
40echo " " >>makefile
41cat temp1 >> makefile
42
43rm -f temp1
44
45#c'est fini
Note: See TracBrowser for help on using the repository browser.