1 # SPDX-License-Identifier: GPL-2.0
2 ifeq ($(strip $(V)), 1)
8 CFLAGS += -std=gnu99 -Wall -Wextra -g \
10 -Wno-unused-parameter \
11 -Wmaybe-uninitialized \
15 -Wno-missing-field-initializers \
16 -Wno-shift-negative-value
18 CC := $(CROSS_COMPILE)gcc
24 %.o: %.c ../greybus_protocols.h
26 $(Q)$(CC) $(CFLAGS) -c $< -o $@
28 loopback_%: loopback_%.o
30 $(Q)$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@