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 @ 396

Last change on this file since 396 was 396, checked in by opalod, 18 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
RevLine 
[396]1# Compilation:
2CC    = cc -O
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 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
22all : conv
23
24conv :  $(OBJS)
25   $(CC) $(OBJS)  $(LEXLIB) -o ../$@
26
27main.o : main.c
28main.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
32fortran.o : fortran.c   
33fortran.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
37convert.tab.c : convert.y decl.h
38   $(YACC) convert.y
39   mv -f y.tab.c convert.tab.c
40fortran.tab.c : fortran.y decl.h
41   $(YACC) -p fortran fortran.y
42   mv -f y.tab.c fortran.tab.c   
43convert.yy.c : convert.lex
44   $(LEX) $(LEXFLAGS) -oconvert.yy.c convert.lex
45fortran.yy.c : fortran.lex
46   $(LEX) $(LEXFLAGS) -Pfortran -ofortran.yy.c fortran.lex
47   
48toamr.o : toamr.c decl.h
49WriteInFile.o : WriteInFile.c decl.h
50tests.o : tests.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
69clean :
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
Note: See TracBrowser for help on using the repository browser.