source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include_mkf/mkf_flex.info @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.4 KB
Line 
1#    This file is part of MKF.
2#
3#    MKF is free software; you can redistribute it and/or modify
4#    it under the terms of the GNU General Public License as published by
5#    the Free Software Foundation; either version 2 of the License, or
6#    (at your option) any later version.
7#
8#    MKF is distributed in the hope that it will be useful,
9#    but WITHOUT ANY WARRANTY; without even the implied warranty of
10#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11#    GNU General Public License for more details.
12#
13#    You should have received a copy of the GNU General Public License
14#    along with MKF; if not, write to the Free Software
15#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16#
17#    Copyright (c) 2004 Alexandre Becoulet <alexandre.becoulet@epita.fr>
18
19_if_var_eq              cmd_flex
20 var_define             cmd_flex        flex
21_end_if
22
23_if_in_path             {PVAR,cmd_flex}
24
25 msg_info               GNU flex ({PVAR,cmd_flex}) found
26 var_define             use_flex        flex
27
28 _if_var_eq             mkf_pretty_print        yes
29  command_add           l       c       echo "   FLEX             {SRC,.*\.l} -> {OUT}"
30 _end_if
31 command_add            l       c       {JVAR,cmd_flex} -o {OUT} --header-file={OUT}.h {JVAR,opt_flex} {SRC,.*\.l}
32
33 _if_var_eq             mkf_pretty_print        yes
34  command_add           ll      cc      echo "   FLEX             {SRC,.*\.ll} -> {OUT}"
35 _end_if
36 command_add            ll      cc      {JVAR,cmd_flex} -o {OUT} --header-file={OUT}.hh {JVAR,opt_flex} {SRC,.*\.ll}
37
38_else
39  msg_error             can't find flex tool
40_end_if
41
Note: See TracBrowser for help on using the repository browser.