Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0
2
3include ../Makefile.deps
4
5CC=gcc
6CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
7 -I../lib/ -I../generated/ -idirafter $(UAPI_PATH)
8ifeq ("$(DEBUG)","1")
9 CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
10endif
11
12LDLIBS=-lmnl ../lib/ynl.a ../generated/protos.a
13
14SRCS=$(wildcard *.c)
15BINS=$(patsubst %.c,%,${SRCS})
16
17include $(wildcard *.d)
18
19all: $(BINS)
20
21$(BINS): ../lib/ynl.a ../generated/protos.a
22
23clean:
24 rm -f *.o *.d *~
25
26hardclean: clean
27 rm -f $(BINS)
28
29.PHONY: all clean
30.DEFAULT_GOAL=all