mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
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:
18
lib/util/Makefile
Normal file
18
lib/util/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user