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