source: branches/UKMO/dev_r5518_v3.6_asm_nemovar_community_ersem_hem08/NEMOGCM/EXTERNAL/AGRIF/LEX/Makefile.lex @ 9319

Last change on this file since 9319 was 7731, checked in by dford, 4 years ago

Merge in revisions 6625:7726 of dev_r5518_v3.4_asm_nemovar_community, so this branch will be identical to revison 7726 of dev_r5518_v3.6_asm_nemovar_community.

File size: 799 bytes
Line 
1LEX      = flex -i
2YACC  = bison -t -v -g
3
4all: main.c fortran.c
5
6main.c : convert.tab.c convert.yy.c
7   cat   convert.tab.c convert.yy.c > ../LIB/main.c
8   $(RM) convert.tab.c convert.yy.c
9
10fortran.c : fortran.tab.c fortran.yy.c
11   cat   fortran.tab.c fortran.yy.c > ../LIB/fortran.c
12   $(RM) fortran.tab.c fortran.yy.c
13
14convert.tab.c : convert.y decl.h
15   $(YACC) -p convert_ convert.y
16
17fortran.tab.c : fortran.y decl.h
18   $(YACC) -p fortran_ fortran.y
19
20convert.yy.c : convert.lex
21   $(LEX) -P convert_ -o convert.yy.c convert.lex
22
23fortran.yy.c : fortran.lex
24   $(LEX) -P fortran_ -o fortran.yy.c fortran.lex
25
26clean:
27   $(RM) convert.yy.c convert.tab.c convert.output convert.vcg convert.dot \
28        fortran.yy.c fortran.tab.c fortran.output fortran.vcg fortran.dot
29
30clean-all: clean
31   $(RM) ../LIB/main.c ../LIB/fortran.c
Note: See TracBrowser for help on using the repository browser.