2024-08-29 07:56:28 +00:00
|
|
|
src := cli.c cmds.c iface.c iface-cli.c locks.c mpls.c neighbor.c password.c proto.c proto-build.c rt-attr.c rt-dev.c rt-export.c rt-fib.c rt-show.c rt-table.c
|
2016-04-12 09:14:54 +00:00
|
|
|
obj := $(src-o-files)
|
|
|
|
$(all-daemon)
|
|
|
|
$(cf-local)
|
2022-09-14 23:38:18 +00:00
|
|
|
$(conf-y-targets): $(s)mpls.Y
|
2022-03-18 21:05:50 +00:00
|
|
|
|
2023-02-01 15:15:13 +00:00
|
|
|
$(o)proto-build.c: Makefile $(lastword $(MAKEFILE_LIST)) $(objdir)/.dir-stamp
|
2022-03-18 21:05:50 +00:00
|
|
|
$(E)echo GEN $@
|
2022-07-18 08:26:55 +00:00
|
|
|
$(Q)echo "#include \"lib/birdlib.h\"" > $@
|
2022-09-09 11:15:50 +00:00
|
|
|
$(Q)$(patsubst %,echo 'void %_build(void);' >> $@;,$(PROTO_BUILD))
|
2022-07-18 08:26:55 +00:00
|
|
|
$(Q)echo "void protos_build_gen(void) {" >> $@
|
2022-09-09 11:15:50 +00:00
|
|
|
$(Q)$(patsubst %,echo ' %_build();'>>$@;,$(PROTO_BUILD))
|
2022-07-18 08:26:55 +00:00
|
|
|
$(Q)echo "}" >> $@
|
2016-11-09 15:36:34 +00:00
|
|
|
|
2023-02-01 15:15:13 +00:00
|
|
|
prepare: $(o)proto-build.c
|
2016-11-09 15:36:34 +00:00
|
|
|
|
2023-10-12 12:12:33 +00:00
|
|
|
tests_src := rt-fib_test.c
|
2016-11-09 15:36:34 +00:00
|
|
|
tests_targets := $(tests_targets) $(tests-target-files)
|
|
|
|
tests_objs := $(tests_objs) $(src-o-files)
|