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 | # pour linux |
---|
27 | #echo FF=g77 >>makefile |
---|
28 | #echo FFLAGS= -O4 -m32 -fno-second-underscore -funroll-loops -I. >>makefile |
---|
29 | #echo " " >>makefile |
---|
30 | #echo "VER=linux" >>makefile |
---|
31 | |
---|
32 | # ecriture dans le fichier de makefile definitif |
---|
33 | # pour Unix OSF |
---|
34 | echo FF=f77 >>makefile |
---|
35 | echo FFLAGS= -O4 >>makefile |
---|
36 | echo " " >>makefile |
---|
37 | echo "VER=OSF" >>makefile |
---|
38 | |
---|
39 | ##### |
---|
40 | |
---|
41 | echo " " >>makefile |
---|
42 | |
---|
43 | echo SRC=${liste} >>makefile |
---|
44 | echo " " >>makefile |
---|
45 | echo "OBJ=\$(SRC:.f=.o)" >>makefile |
---|
46 | echo " " >>makefile |
---|
47 | cat temp1 >> makefile |
---|
48 | |
---|
49 | rm -f temp1 |
---|
50 | |
---|
51 | #c'est fini |
---|
Note: See
TracBrowser
for help on using the repository browser.