OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [opt-include.awk] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 684 jeremybenn
#  Copyright (C) 2010
2
#  Free Software Foundation, Inc.
3
#  Contributed by Michael Meissner (meissner@linux.vnet.ibm.com)
4
#
5
# This program is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License as published by the
7
# Free Software Foundation; either version 3, or (at your option) any
8
# later version.
9
#
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with this program; see the file COPYING3.  If not see
17
# <http://www.gnu.org/licenses/>.
18
 
19
# This Awk script reads in the option records and emits the include files
20
# listed by the HeaderInclude directive.
21
 
22
BEGIN {
23
        h_next = 0
24
        c_next = 0
25
}
26
 
27
(h_next != 0)     { print "OPTIONS_H_EXTRA += $(srcdir)/" $1; h_next = 0 }
28
(c_next != 0)     { print "OPTIONS_C_EXTRA += $(srcdir)/" $1; c_next = 0 }
29
/^HeaderInclude$/ { h_next = 1; c_next = 0 }
30
/^SourceInclude$/ { h_next = 0; c_next = 1 }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.