blob: 92ff3c6afee9ccc1fb5ae0415c7c7225ef501a79 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* Might as well be -*- C -*-.
2
3 This generates a makefile that sets the variable pairs
4 nacl-MODULE-mandatory-interfaces and nacl-MODULE-optional-interfaces
5 based on the nacl-interface-list.h list. */
6
7%define NACL_MANDATORY_INTERFACE(module, id, type) \
8 nacl-mandatory-interfaces += module-type
9%define NACL_OPTIONAL_INTERFACE(module, id, type) \
10 nacl-optional-interfaces += module-type
11
12%include "nacl-interface-list.h"
13
14%undef NACL_MANDATORY_INTERFACE
15%undef NACL_OPTIONAL_INTERFACE
16
17%define NACL_MANDATORY_INTERFACE(module, id, type) \
18 nacl-module-type-string := id
19%define NACL_OPTIONAL_INTERFACE(module, id, type) \
20 nacl-module-type-string := id
21
22%include "nacl-interface-list.h"
23
24%undef NACL_MANDATORY_INTERFACE
25%undef NACL_OPTIONAL_INTERFACE