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.
Makefile.lex in trunk/AGRIF/LIB – NEMO

source: trunk/AGRIF/LIB/Makefile.lex @ 1200

Last change on this file since 1200 was 1200, checked in by rblod, 16 years ago

Adapt Agrif to the new SBC and correct several bugs for agrif (restart writing and reading), see ticket #133
Note : this fix does not work yet on NEC computerq (sxf90/360)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1# Compilation:
2CC    = cc -O -g
3LEX      = flex
4
5# option de flex et pas de lex
6LEXFLAGS=-i
7YACC = byacc -t -v
8
9
10OBJS = main.o WriteInFile.o toamr.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       WorkWithlistofcoupled.o
19
20.SUFFIXES:
21.SUFFIXES: .c .o
22
23all : conv
24
25conv :  $(OBJS)
26   $(CC) $(OBJS)  $(LEXLIB) -o ../$@
27
28main.o : main.c
29main.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
33fortran.o : fortran.c
34fortran.c : fortran.tab.c fortran.yy.c
35   rm -f fortran.c
36   cat fortran.tab.c  fortran.yy.c > fortran.c
37#rm -f fortran.yy.c fortran.tab.c
38convert.tab.c : convert.y decl.h
39   $(YACC) convert.y
40   mv -f y.tab.c convert.tab.c
41fortran.tab.c : fortran.y decl.h
42   $(YACC) -p fortran fortran.y
43   mv -f y.tab.c fortran.tab.c
44convert.yy.c : convert.lex
45   $(LEX) $(LEXFLAGS) -oconvert.yy.c convert.lex
46fortran.yy.c : fortran.lex
47   $(LEX) $(LEXFLAGS) -Pfortran -ofortran.yy.c fortran.lex
48   
49toamr.o : toamr.c decl.h
50WriteInFile.o : WriteInFile.c decl.h
51dependfile.o : dependfile.c decl.h
52SubLoopCreation.o : SubLoopCreation.c decl.h
53WorkWithglobliste.o : WorkWithglobliste.c decl.h
54WorkWithlistvarindoloop.o : WorkWithlistvarindoloop.c decl.h
55WorkWithvarofsubroutineliste.o : WorkWithvarofsubroutineliste.c decl.h
56Writedeclarations.o : Writedeclarations.c decl.h
57UtilFortran.o : UtilFortran.c decl.h
58WorkWithParameterlist.o : WorkWithParameterlist.c decl.h
59UtilNotGridDep.o : UtilNotGridDep.c decl.h
60WorkWithlistdatavariable.o : WorkWithlistdatavariable.c decl.h
61DiversListe.o : DiversListe.c decl.h
62UtilAgrif.o : UtilAgrif.c decl.h
63WorkWithAllocatelist.o : WorkWithAllocatelist.c decl.h
64UtilCharacter.o : UtilCharacter.c decl.h
65UtilListe.o : UtilListe.c decl.h
66UtilFile.o : UtilFile.c decl.h
67WorkWithlistofmodulebysubroutine.o : WorkWithlistofmodulebysubroutine.c decl.h
68WorkWithlistmoduleinfile.o : WorkWithlistmoduleinfile.c decl.h
69WorkWithlistofcoupled.o : WorkWithlistofcoupled.c decl.h
70clean :
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
Note: See TracBrowser for help on using the repository browser.