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