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 branches/UKMO/dev_r5518_v3.6_asm_nemovar_community/NEMOGCM/EXTERNAL/AGRIF/LIB – NEMO

source: branches/UKMO/dev_r5518_v3.6_asm_nemovar_community/NEMOGCM/EXTERNAL/AGRIF/LIB/Makefile.lex @ 7731

Last change on this file since 7731 was 7730, checked in by dford, 7 years ago

Clear svn keywords.

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
9YACC = bison
10
11
12OBJS = 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
21
22.SUFFIXES:
23.SUFFIXES: .c .o
24
25all : conv
26
27conv :  $(OBJS)
28   $(CC) $(OBJS)  $(LEXLIB) -o ../$@
29
30main.o : main.c
31main.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
35fortran.o : fortran.c
36fortran.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
40convert.tab.c : convert.y decl.h
41   $(YACC) convert.y
42#  mv -f y.tab.c convert.tab.c
43fortran.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
48convert.yy.c : convert.lex
49   $(LEX) $(LEXFLAGS) -oconvert.yy.c convert.lex
50fortran.yy.c : fortran.lex
51   $(LEX) $(LEXFLAGS) -Pfortran -ofortran.yy.c fortran.lex
52   
53toamr.o : toamr.c decl.h
54WriteInFile.o : WriteInFile.c decl.h
55dependfile.o : dependfile.c decl.h
56SubLoopCreation.o : SubLoopCreation.c decl.h
57WorkWithglobliste.o : WorkWithglobliste.c decl.h
58WorkWithlistvarindoloop.o : WorkWithlistvarindoloop.c decl.h
59WorkWithvarofsubroutineliste.o : WorkWithvarofsubroutineliste.c decl.h
60Writedeclarations.o : Writedeclarations.c decl.h
61UtilFortran.o : UtilFortran.c decl.h
62WorkWithParameterlist.o : WorkWithParameterlist.c decl.h
63UtilNotGridDep.o : UtilNotGridDep.c decl.h
64WorkWithlistdatavariable.o : WorkWithlistdatavariable.c decl.h
65DiversListe.o : DiversListe.c decl.h
66UtilAgrif.o : UtilAgrif.c decl.h
67WorkWithAllocatelist.o : WorkWithAllocatelist.c decl.h
68UtilCharacter.o : UtilCharacter.c decl.h
69UtilListe.o : UtilListe.c decl.h
70UtilFile.o : UtilFile.c decl.h
71WorkWithlistofmodulebysubroutine.o : WorkWithlistofmodulebysubroutine.c decl.h
72WorkWithlistmoduleinfile.o : WorkWithlistmoduleinfile.c decl.h
73WorkWithlistofcoupled.o : WorkWithlistofcoupled.c decl.h
74clean :
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
Note: See TracBrowser for help on using the repository browser.