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 | |
---|
4 | programe="parmela" |
---|
5 | |
---|
6 | for files in *.f |
---|
7 | do |
---|
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 |
---|
17 | done |
---|
18 | |
---|
19 | echo "${programe}: \$(OBJ)" >>temp1 |
---|
20 | echo "\t \$(FF) \$(FFLAGS) \$(OBJ) -o "${programe}"\$(VER)" >>temp1 |
---|
21 | echo " " >>temp1 |
---|
22 | echo "clean:" >>temp1 |
---|
23 | echo "\t rm *.o">>temp1 |
---|
24 | |
---|
25 | # ecriture dans le fichier de makefile definitif |
---|
26 | |
---|
27 | echo FF=g77 >>makefile |
---|
28 | #echo FFLAGS= -g -O4 -m32 -fno-second-underscore -funroll-loops -I. >>makefile |
---|
29 | echo FFLAGS= -O4 -m32 -fno-second-underscore -funroll-loops -I. >>makefile |
---|
30 | |
---|
31 | echo " " >>makefile |
---|
32 | |
---|
33 | echo "VER=linux" >>makefile |
---|
34 | |
---|
35 | echo " " >>makefile |
---|
36 | |
---|
37 | echo SRC=${liste} >>makefile |
---|
38 | echo " " >>makefile |
---|
39 | echo "OBJ=\$(SRC:.f=.o)" >>makefile |
---|
40 | echo " " >>makefile |
---|
41 | cat temp1 >> makefile |
---|
42 | |
---|
43 | rm -f temp1 |
---|
44 | |
---|
45 | #c'est fini |
---|
Note: See
TracBrowser
for help on using the repository browser.