]>
Commit | Line | Data |
---|---|---|
3a11599c DL |
1 | SUFFIXES += .yang .yang.c .yin .yin.c |
2 | EXTRA_DIST += yang/embedmodel.py | |
3 | ||
4 | .yang.yang.c: | |
5 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/yang/embedmodel.py $^ $@ | |
6 | .yin.yin.c: | |
7 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/yang/embedmodel.py $^ $@ | |
8 | ||
9 | # use .yang.c files like this: | |
10 | # | |
11 | # ripd_ripd_SOURCES = \ | |
12 | # ... | |
13 | # nodist_ripd_ripd_SOURCES = \ | |
14 | # yang/frr-ripd.yang.c \ | |
15 | # # end | |
16 | # | |
17 | # Note that putting the .yang.c file into a static library.a will NOT work | |
18 | # because the entire file is "optimized out" since it does not contain any | |
19 | # global symbols :(. Just put it in the daemon. Dynamic libraries.so work | |
20 | # without problems, as seen in libfrr. | |
21 | ||
1c2facd1 | 22 | dist_yangmodels_DATA += yang/frr-module-translator.yang |
1a4bc045 | 23 | dist_yangmodels_DATA += yang/frr-test-module.yang |
a4bed468 | 24 | dist_yangmodels_DATA += yang/frr-interface.yang |
707656ec RW |
25 | dist_yangmodels_DATA += yang/frr-route-types.yang |
26 | ||
27 | if RIPD | |
28 | dist_yangmodels_DATA += yang/frr-ripd.yang | |
29 | endif |