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