1 | # Compilation: |
---|
2 | CC = cc -O -g -Wall |
---|
3 | LEX = flex |
---|
4 | |
---|
5 | # option de flex et pas de lex |
---|
6 | LEXFLAGS=-i |
---|
7 | YACC = byacc -t -v -g |
---|
8 | YACC = bison -t -v -g |
---|
9 | |
---|
10 | |
---|
11 | OBJS = main.o WriteInFile.o toamr.o fortran.o \ |
---|
12 | dependfile.o SubLoopCreation.o WorkWithlistvarindoloop.o \ |
---|
13 | WorkWithvarofsubroutineliste.o WorkWithParameterlist.o \ |
---|
14 | Writedeclarations.o WorkWithglobliste.o UtilFortran.o \ |
---|
15 | UtilNotGridDep.o WorkWithlistdatavariable.o \ |
---|
16 | DiversListe.o UtilAgrif.o WorkWithAllocatelist.o \ |
---|
17 | UtilCharacter.o UtilListe.o UtilFile.o \ |
---|
18 | WorkWithlistofmodulebysubroutine.o WorkWithlistmoduleinfile.o \ |
---|
19 | WorkWithlistofcoupled.o |
---|
20 | |
---|
21 | .SUFFIXES: |
---|
22 | .SUFFIXES: .c .o |
---|
23 | |
---|
24 | all : conv |
---|
25 | |
---|
26 | conv : $(OBJS) |
---|
27 | $(CC) $(OBJS) $(LEXLIB) -o ../$@ |
---|
28 | |
---|
29 | main.o : main.c |
---|
30 | main.c : convert.tab.c convert.yy.c |
---|
31 | rm -f main.c |
---|
32 | cat convert.tab.c convert.yy.c > main.c |
---|
33 | rm -f convert.yy.c convert.tab.c |
---|
34 | fortran.o : fortran.c |
---|
35 | fortran.c : fortran.tab.c fortran.yy.c |
---|
36 | rm -f fortran.c |
---|
37 | cat fortran.tab.c fortran.yy.c > fortran.c |
---|
38 | #rm -f fortran.yy.c fortran.tab.c |
---|
39 | convert.tab.c : convert.y decl.h |
---|
40 | $(YACC) convert.y |
---|
41 | # mv -f y.tab.c convert.tab.c |
---|
42 | fortran.tab.c : fortran.y decl.h |
---|
43 | $(YACC) -p fortran fortran.y |
---|
44 | # mv -f y.tab.c fortran.tab.c |
---|
45 | # mv -f y.output fortran.output |
---|
46 | # mv -f y.dot fortran.dot |
---|
47 | convert.yy.c : convert.lex |
---|
48 | $(LEX) $(LEXFLAGS) -oconvert.yy.c convert.lex |
---|
49 | fortran.yy.c : fortran.lex |
---|
50 | $(LEX) $(LEXFLAGS) -Pfortran -ofortran.yy.c fortran.lex |
---|
51 | |
---|
52 | toamr.o : toamr.c decl.h |
---|
53 | WriteInFile.o : WriteInFile.c decl.h |
---|
54 | dependfile.o : dependfile.c decl.h |
---|
55 | SubLoopCreation.o : SubLoopCreation.c decl.h |
---|
56 | WorkWithglobliste.o : WorkWithglobliste.c decl.h |
---|
57 | WorkWithlistvarindoloop.o : WorkWithlistvarindoloop.c decl.h |
---|
58 | WorkWithvarofsubroutineliste.o : WorkWithvarofsubroutineliste.c decl.h |
---|
59 | Writedeclarations.o : Writedeclarations.c decl.h |
---|
60 | UtilFortran.o : UtilFortran.c decl.h |
---|
61 | WorkWithParameterlist.o : WorkWithParameterlist.c decl.h |
---|
62 | UtilNotGridDep.o : UtilNotGridDep.c decl.h |
---|
63 | WorkWithlistdatavariable.o : WorkWithlistdatavariable.c decl.h |
---|
64 | DiversListe.o : DiversListe.c decl.h |
---|
65 | UtilAgrif.o : UtilAgrif.c decl.h |
---|
66 | WorkWithAllocatelist.o : WorkWithAllocatelist.c decl.h |
---|
67 | UtilCharacter.o : UtilCharacter.c decl.h |
---|
68 | UtilListe.o : UtilListe.c decl.h |
---|
69 | UtilFile.o : UtilFile.c decl.h |
---|
70 | WorkWithlistofmodulebysubroutine.o : WorkWithlistofmodulebysubroutine.c decl.h |
---|
71 | WorkWithlistmoduleinfile.o : WorkWithlistmoduleinfile.c decl.h |
---|
72 | WorkWithlistofcoupled.o : WorkWithlistofcoupled.c decl.h |
---|
73 | clean : |
---|
74 | /bin/rm -f *.o y.tab.c main.c lex.yy.c fortran.c \ |
---|
75 | fortran.tab.c fortran.yy.c convert.tab.c convert.yy.c \ |
---|
76 | y.output |
---|