drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / tools / net / ynl / samples / Makefile
blobc9494a564da492d666fe4406ce8a483042a3051d
1 # SPDX-License-Identifier: GPL-2.0
3 include ../Makefile.deps
5 CC=gcc
6 CFLAGS += -std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
7 -I../lib/ -I../generated/ -idirafter $(UAPI_PATH)
8 ifeq ("$(DEBUG)","1")
9 CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
10 endif
12 LDLIBS=../lib/ynl.a ../generated/protos.a
14 SRCS=$(wildcard *.c)
15 BINS=$(patsubst %.c,%,${SRCS})
17 include $(wildcard *.d)
19 all: $(BINS)
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)
28 clean:
29 rm -f *.o *.d *~
31 distclean: clean
32 rm -f $(BINS)
34 .PHONY: all clean distclean
35 .DEFAULT_GOAL=all