New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4779 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/EXTERNAL/AGRIF/LIB/Makefile.lex – NEMO

Ignore:
Timestamp:
2014-09-19T16:21:37+02:00 (10 years ago)
Author:
rblod
Message:

Update AGRIF internal routines and conv on branch dev_r4765_CNRS_agrif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/EXTERNAL/AGRIF/LIB/Makefile.lex

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