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

Last change on this file since 663 was 663, checked in by opalod, 17 years ago

RB: update CONV

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 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
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
50dependfile.o : dependfile.c decl.h
51SubLoopCreation.o : SubLoopCreation.c decl.h
52WorkWithglobliste.o : WorkWithglobliste.c decl.h
53WorkWithlistvarindoloop.o : WorkWithlistvarindoloop.c decl.h
54WorkWithvarofsubroutineliste.o : WorkWithvarofsubroutineliste.c decl.h
55Writedeclarations.o : Writedeclarations.c decl.h
56UtilFortran.o : UtilFortran.c decl.h
57WorkWithParameterlist.o : WorkWithParameterlist.c decl.h
58UtilNotGridDep.o : UtilNotGridDep.c decl.h
59WorkWithlistdatavariable.o : WorkWithlistdatavariable.c decl.h
60DiversListe.o : DiversListe.c decl.h
61UtilAgrif.o : UtilAgrif.c decl.h
62WorkWithAllocatelist.o : WorkWithAllocatelist.c decl.h
63UtilCharacter.o : UtilCharacter.c decl.h
64UtilListe.o : UtilListe.c decl.h
65UtilFile.o : UtilFile.c decl.h
66WorkWithlistofmodulebysubroutine.o : WorkWithlistofmodulebysubroutine.c decl.h
67WorkWithlistmoduleinfile.o : WorkWithlistmoduleinfile.c decl.h
68clean :
69   /bin/rm -f *.o y.tab.c main.c lex.yy.c fortran.c \
70   fortran.tab.c fortran.yy.c convert.tab.c convert.yy.c \
71   y.output
Note: See TracBrowser for help on using the repository browser.