1ee0202e2SJakub Kicinski# SPDX-License-Identifier: GPL-2.0 2ee0202e2SJakub Kicinski 3*f0ec58d5SJakub Kicinskiinclude ../Makefile.deps 4*f0ec58d5SJakub Kicinski 5ee0202e2SJakub KicinskiCC=gcc 6ee0202e2SJakub KicinskiCFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \ 7*f0ec58d5SJakub Kicinski -I../lib/ -I../generated/ -idirafter $(UAPI_PATH) 8ee0202e2SJakub Kicinskiifeq ("$(DEBUG)","1") 9ee0202e2SJakub Kicinski CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan 10ee0202e2SJakub Kicinskiendif 11ee0202e2SJakub Kicinski 12ee0202e2SJakub KicinskiLDLIBS=-lmnl ../lib/ynl.a ../generated/protos.a 13ee0202e2SJakub Kicinski 14ee0202e2SJakub KicinskiSRCS=$(wildcard *.c) 15ee0202e2SJakub KicinskiBINS=$(patsubst %.c,%,${SRCS}) 16ee0202e2SJakub Kicinski 17ee0202e2SJakub Kicinskiinclude $(wildcard *.d) 18ee0202e2SJakub Kicinski 19ee0202e2SJakub Kicinskiall: $(BINS) 20ee0202e2SJakub Kicinski 21ee0202e2SJakub Kicinski$(BINS): ../lib/ynl.a ../generated/protos.a 22ee0202e2SJakub Kicinski 23ee0202e2SJakub Kicinskiclean: 24ee0202e2SJakub Kicinski rm -f *.o *.d *~ 25ee0202e2SJakub Kicinski 26ee0202e2SJakub Kicinskihardclean: clean 27ee0202e2SJakub Kicinski rm -f $(BINS) 28ee0202e2SJakub Kicinski 29ee0202e2SJakub Kicinski.PHONY: all clean 30ee0202e2SJakub Kicinski.DEFAULT_GOAL=all 31