Files
xdp-project-bpf-examples/lib/util/Makefile
Toke Høiland-Jørgensen f27c7c2c46 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>
2022-04-20 13:24:22 +02:00

19 lines
324 B
Makefile

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)