1# SPDX-License-Identifier: LGPL-2.1 2 3include $(src)/scripts/utils.mk 4 5TARGETS := 6TARGETS += test-event 7 8sdir := $(obj)/samples 9 10TARGETS := $(patsubst %,$(sdir)/%,$(TARGETS)) 11 12all: $(TARGETS) 13 14$(sdir): 15 @mkdir -p $(sdir) 16 17$(TARGETS): $(sdir) $(LIBTRACEEVENT_STATIC) 18 19$(sdir)/%: $(bdir)/%.o 20 $(call do_sample_build,$@,$<) 21 22$(bdir)/%.o: $(bdir)/%.c 23 $(Q)$(CC) -o $@ -c $< $(CFLAGS) $(INCLUDES) 24 25clean: 26 $(Q)$(call do_clean,$(sdir)/*) 27