source: vendors/AGRIF/dev_r12970_AGRIF_CMEMS/LEX/Makefile.lex @ 13027

Last change on this file since 13027 was 13027, checked in by rblod, 9 months ago

New AGRIF library, see ticket #2129

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