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