1 # SPDX-License-Identifier: GPL-2.0
3 include ..
/Makefile.deps
6 CFLAGS
+= -std
=gnu11
-O2
-W
-Wall
-Wextra
-Wno-unused-parameter
-Wshadow \
7 -I..
/lib
/ -I..
/generated
/ -idirafter
$(UAPI_PATH
)
9 CFLAGS
+= -g
-fsanitize
=address
-fsanitize
=leak
-static-libasan
12 LDLIBS
=..
/lib
/ynl.a ..
/generated
/protos.a
15 BINS
=$(patsubst %.c
,%,${SRCS})
17 include $(wildcard *.d
)
21 CFLAGS_page-pool
=$(CFLAGS_netdev
)
23 $(BINS
): ..
/lib
/ynl.a ..
/generated
/protos.a
$(SRCS
)
24 @echo
-e
'\tCC sample $@'
25 @
$(COMPILE.c
) $(CFLAGS_
$@
) $@.c
-o
$@.o
26 @
$(LINK.c
) $@.o
-o
$@
$(LDLIBS
)
34 .PHONY
: all clean distclean