[396] | 1 | # Compilation: |
---|
[663] | 2 | CC = cc -O -g |
---|
[396] | 3 | LEX = flex |
---|
| 4 | |
---|
| 5 | # option de flex et pas de lex |
---|
| 6 | LEXFLAGS=-i |
---|
| 7 | YACC = byacc -t -v |
---|
| 8 | |
---|
| 9 | |
---|
[530] | 10 | OBJS = main.o WriteInFile.o toamr.o fortran.o \ |
---|
[396] | 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 \ |
---|
[1200] | 17 | WorkWithlistofmodulebysubroutine.o WorkWithlistmoduleinfile.o \ |
---|
| 18 | WorkWithlistofcoupled.o |
---|
[396] | 19 | |
---|
| 20 | .SUFFIXES: |
---|
| 21 | .SUFFIXES: .c .o |
---|
| 22 | |
---|
| 23 | all : conv |
---|
| 24 | |
---|
| 25 | conv : $(OBJS) |
---|
| 26 | $(CC) $(OBJS) $(LEXLIB) -o ../$@ |
---|
| 27 | |
---|
| 28 | main.o : main.c |
---|
| 29 | main.c : convert.tab.c convert.yy.c |
---|
| 30 | rm -f main.c |
---|
| 31 | cat convert.tab.c convert.yy.c > main.c |
---|
| 32 | rm -f convert.yy.c convert.tab.c |
---|
[663] | 33 | fortran.o : fortran.c |
---|
[396] | 34 | fortran.c : fortran.tab.c fortran.yy.c |
---|
| 35 | rm -f fortran.c |
---|
[663] | 36 | cat fortran.tab.c fortran.yy.c > fortran.c |
---|
[1200] | 37 | #rm -f fortran.yy.c fortran.tab.c |
---|
[396] | 38 | convert.tab.c : convert.y decl.h |
---|
| 39 | $(YACC) convert.y |
---|
| 40 | mv -f y.tab.c convert.tab.c |
---|
| 41 | fortran.tab.c : fortran.y decl.h |
---|
| 42 | $(YACC) -p fortran fortran.y |
---|
[663] | 43 | mv -f y.tab.c fortran.tab.c |
---|
[396] | 44 | convert.yy.c : convert.lex |
---|
[663] | 45 | $(LEX) $(LEXFLAGS) -oconvert.yy.c convert.lex |
---|
[396] | 46 | fortran.yy.c : fortran.lex |
---|
| 47 | $(LEX) $(LEXFLAGS) -Pfortran -ofortran.yy.c fortran.lex |
---|
| 48 | |
---|
| 49 | toamr.o : toamr.c decl.h |
---|
| 50 | WriteInFile.o : WriteInFile.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 |
---|
[1200] | 69 | WorkWithlistofcoupled.o : WorkWithlistofcoupled.c decl.h |
---|
[396] | 70 | clean : |
---|
| 71 | /bin/rm -f *.o y.tab.c main.c lex.yy.c fortran.c \ |
---|
| 72 | fortran.tab.c fortran.yy.c convert.tab.c convert.yy.c \ |
---|
| 73 | y.output |
---|