|
43 | 43 | * |
44 | 44 | * Description: The prefix to use to namespace global symbols from mldsa/. |
45 | 45 | * |
| 46 | + * In a multi-level build (that is, if either |
| 47 | + * - MLD_CONFIG_MULTILEVEL_WITH_SHARED, or |
| 48 | + * - MLD_CONFIG_MULTILEVEL_NO_SHARED, |
| 49 | + * are set, level-dependent symbols will additionally be prefixed |
| 50 | + * with the parameter set (44/65/87). |
| 51 | + * |
46 | 52 | * This can also be set using CFLAGS. |
47 | 53 | * |
48 | 54 | *****************************************************************************/ |
49 | 55 | #if !defined(MLD_CONFIG_NAMESPACE_PREFIX) |
50 | 56 | #define MLD_CONFIG_NAMESPACE_PREFIX MLD_DEFAULT_NAMESPACE_PREFIX |
51 | 57 | #endif |
52 | 58 |
|
| 59 | +/****************************************************************************** |
| 60 | + * Name: MLD_CONFIG_MULTILEVEL_WITH_SHARED |
| 61 | + * |
| 62 | + * Description: This is for multi-level builds of mldsa-native only. If you |
| 63 | + * need only a single parameter set, keep this unset. |
| 64 | + * |
| 65 | + * If this is set, all MLD_CONFIG_PARAMETER_SET-independent |
| 66 | + * code will be included in the build, including code needed only |
| 67 | + * for other parameter sets. |
| 68 | + * |
| 69 | + * Example: TODO: add example |
| 70 | + * |
| 71 | + * To build mldsa-native with support for all parameter sets, |
| 72 | + * build it three times -- once per parameter set -- and set the |
| 73 | + * option MLD_CONFIG_MULTILEVEL_WITH_SHARED for exactly one of |
| 74 | + * them, and MLD_CONFIG_MULTILEVEL_NO_SHARED for the others. |
| 75 | + * |
| 76 | + * See examples/multilevel_build_mldsa for an example. |
| 77 | + * |
| 78 | + * This can also be set using CFLAGS. |
| 79 | + * |
| 80 | + *****************************************************************************/ |
| 81 | +/* #define MLD_CONFIG_MULTILEVEL_WITH_SHARED */ |
| 82 | + |
| 83 | +/****************************************************************************** |
| 84 | + * Name: MLD_CONFIG_MULTILEVEL_NO_SHARED |
| 85 | + * |
| 86 | + * Description: This is for multi-level builds of mldsa-native only. If you |
| 87 | + * need only a single parameter set, keep this unset. |
| 88 | + * |
| 89 | + * If this is set, no MLD_CONFIG_PARAMETER_SET-independent code |
| 90 | + * will be included in the build. |
| 91 | + * |
| 92 | + * To build mldsa-native with support for all parameter sets, |
| 93 | + * build it three times -- once per parameter set -- and set the |
| 94 | + * option MLD_CONFIG_MULTILEVEL_WITH_SHARED for exactly one of |
| 95 | + * them, and MLD_CONFIG_MULTILEVEL_NO_SHARED for the others. |
| 96 | + * |
| 97 | + * See examples/multilevel_build_mldsa for an example. |
| 98 | + * |
| 99 | + * This can also be set using CFLAGS. |
| 100 | + * |
| 101 | + *****************************************************************************/ |
| 102 | +/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */ |
| 103 | + |
53 | 104 | /****************************************************************************** |
54 | 105 | * Name: MLD_CONFIG_FILE |
55 | 106 | * |
|
0 commit comments