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.byacc in branches/UKMO/icebergs_restart_single_file/NEMOGCM/EXTERNAL/AGRIF/LIB – NEMO

source: branches/UKMO/icebergs_restart_single_file/NEMOGCM/EXTERNAL/AGRIF/LIB/Makefile.lex.byacc @ 6019

Last change on this file since 6019 was 6019, checked in by timgraham, 8 years ago

Reinstated svn keywords before upgrading to head of trunk

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