File: Makefile

package info (click to toggle)
libtraceevent 1%3A1.8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,040 kB
  • sloc: ansic: 13,380; makefile: 671; sh: 85
file content (26 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (3)
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)/*)