mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
86878f14d7
Add "fixed" part of the user space Netlink Spec-based library. This will get linked with the protocol implementations to form a full API. Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
29 lines
466 B
Makefile
29 lines
466 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
CC=gcc
|
|
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow
|
|
ifeq ("$(DEBUG)","1")
|
|
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
|
|
endif
|
|
|
|
SRCS=$(wildcard *.c)
|
|
OBJS=$(patsubst %.c,%.o,${SRCS})
|
|
|
|
include $(wildcard *.d)
|
|
|
|
all: ynl.a
|
|
|
|
ynl.a: $(OBJS)
|
|
ar rcs $@ $(OBJS)
|
|
clean:
|
|
rm -f *.o *.d *~
|
|
|
|
hardclean: clean
|
|
rm -f *.a
|
|
|
|
%.o: %.c
|
|
$(COMPILE.c) -MMD -c -o $@ $<
|
|
|
|
.PHONY: all clean
|
|
.DEFAULT_GOAL=all
|