mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
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>
19 lines
324 B
Makefile
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)
|