This commit is contained in:
Ariel Otilibili 2025-04-29 16:20:41 +00:00 committed by GitHub
commit e2420b89dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 20 deletions

View file

@ -155,9 +155,6 @@ $(AUTOMAKE_DUMMY)install-moduleLTLIBRARIES: install-libLTLIBRARIES
$(AUTOMAKE_DUMMY)install-binPROGRAMS: install-libLTLIBRARIES
$(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES
# Include default rules to compile protobuf message sources
SUFFIXES += .proto .pb-c.c .pb-c.h
# Rules
AM_V_PROTOC_C = $(am__v_PROTOC_C_$(V))
@ -304,12 +301,10 @@ am__v_LLVM_LD_ = $(am__v_LLVM_LD_$(AM_DEFAULT_VERBOSITY))
am__v_LLVM_LD_0 = @echo " LLVM.LD " $@;
am__v_LLVM_LD_1 =
SUFFIXES += .lo.bc .o.bc
.o.o.bc:
$(AM_V_LLVM_BC)$(COMPILE) -emit-llvm -c -o $@ $(patsubst %.o,%.c,$<)
.lo.lo.bc:
$(AM_V_LLVM_BC)$(COMPILE) -emit-llvm -c -o $@ $(patsubst %.lo,%.c,$<)
%.o.bc: %.o
$(AM_V_LLVM_BC)$(COMPILE) -emit-llvm -c -o $@ $*.c
%.lo.bc: %.lo
$(AM_V_LLVM_BC)$(COMPILE) -emit-llvm -c -o $@ $*.c
%.cg.json: %.bc tools/frr-llvm-cg
tools/frr-llvm-cg -o $@ $<

View file

@ -30,8 +30,6 @@ am__v_PROTOC_ = $(am__v_PROTOC_$(AM_DEFAULT_VERBOSITY))
am__v_PROTOC_0 = @echo " PROTOC " $@;
am__v_PROTOC_1 =
SUFFIXES += .pb.h .pb.cc .grpc.pb.cc
grpc/frr-northbound.grpc.pb.h: grpc/frr-northbound.grpc.pb.cc
@test -f $@ || rm -f $< || true
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $<
@ -39,7 +37,7 @@ grpc/frr-northbound.pb.h: grpc/frr-northbound.pb.cc
@test -f $@ || rm -f $< || true
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $<
.proto.pb.cc:
%.pb.cc: %.proto
$(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --cpp_out=$(top_builddir) $^
.proto.grpc.pb.cc:
%.grpc.pb.cc: %.proto
$(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --grpc_out=$(top_builddir) --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` $^

View file

@ -489,8 +489,7 @@ am__v_CLIPPY_1 =
CLIPPY_DEPS = $(CLIPPY) $(top_srcdir)/python/clidef.py
SUFFIXES += _clippy.c
.c_clippy.c:
%_clippy.c: %.c
$(AM_V_CLIPPY) $(CLIPPY) $(top_srcdir)/python/clidef.py -o $@ $<
# xrelfo, the ELF xref extractor
@ -502,7 +501,6 @@ am__v_XRELFO_1 =
XRELFO_FLAGS = -Wlog-format -Wlog-args
SUFFIXES += .xref
%.xref: % $(CLIPPY)
$(AM_V_XRELFO) $(CLIPPY) $(top_srcdir)/python/xrelfo.py $(WERROR) $(XRELFO_FLAGS) -o $@ $<
@ -542,9 +540,9 @@ nodist_vtysh_vtysh_SOURCES = vtysh/vtysh_cmd.c $(vtysh_cmd_split)
CLEANFILES += vtysh/vtysh_cmd.c $(vtysh_cmd_split)
## automake's "ylwrap" is a great piece of GNU software... not.
.l.c:
%.c: %.l
$(AM_V_LEX)$(am__skiplex) $(LEXCOMPILE) $<
.y.c:
%.c: %.y
$(AM_V_YACC)$(am__skipyacc) $(YACCCOMPILE) $<
#

View file

@ -1,9 +1,9 @@
SUFFIXES += .yang .yang.c .yin .yin.c
EXTRA_DIST += yang/embedmodel.py
.yang.yang.c:
%.yang.c: %.yang
$(AM_V_GEN)$(PYTHON) $(top_srcdir)/yang/embedmodel.py $^ $@
.yin.yin.c:
%.yin.c: %.yin
$(AM_V_GEN)$(PYTHON) $(top_srcdir)/yang/embedmodel.py $^ $@
# use .yang.c files like this: