lib/util: Import logging helpers from xdp-tools

Include logging.{h,c} from xdp-tools so utilities can use them for setting
libxdp and libbpf logging.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
Toke Høiland-Jørgensen
2022-04-20 13:24:22 +02:00
parent 4d74e4aaf3
commit f27c7c2c46
5 changed files with 147 additions and 2 deletions

18
lib/util/Makefile Normal file
View File

@@ -0,0 +1,18 @@
include util.mk
LIB_DIR ?= ..
include $(LIB_DIR)/defines.mk
all: $(UTIL_OBJS)
# Create expansions for dependencies
UTIL_H := ${UTIL_OBJS:.o=.h}
CFLAGS+= -I$(LIB_DIR)/install/include
$(UTIL_OBJS): %.o: %.c $(UTIL_H) $(LIBMK)
$(QUIET_CC)$(CC) $(CFLAGS) -Wall -I../../headers -c -o $@ $<
clean:
$(Q)rm -f $(UTIL_OBJS)