Linux Audio

Check our new training course

Linux BSP upgrade and security maintenance

Need help to get security updates for your Linux BSP?
Loading...
v6.13.7
 1# SPDX-License-Identifier: GPL-2.0-only
 2
 3ifeq ($(srctree),)
 4  srctree	:= $(patsubst %/,%,$(dir $(CURDIR)))
 5  srctree	:= $(patsubst %/,%,$(dir $(srctree)))
 6  srctree	:= $(patsubst %/,%,$(dir $(srctree)))
 7endif
 8
 9include $(srctree)/tools/scripts/Makefile.include
10
11# O is an alias for OUTPUT
12OUTPUT          := $(O)
13
14ifeq ($(OUTPUT),)
15  OUTPUT        := $(CURDIR)
16else
17  # subdir is used by the ../Makefile in $(call descend,)
18  ifneq ($(subdir),)
19    OUTPUT        := $(OUTPUT)/$(subdir)
20  endif
21endif
22
23ifneq ($(patsubst %/,,$(lastword $(OUTPUT))),)
24  OUTPUT        := $(OUTPUT)/
25endif
26
27RTLA		:= $(OUTPUT)rtla
28RTLA_IN		:= $(RTLA)-in.o
29
30VERSION		:= $(shell sh -c "make -sC ../../.. kernelversion | grep -v make")
31DOCSRC		:= ../../../Documentation/tools/rtla/
32
33FEATURE_TESTS	:= libtraceevent
34FEATURE_TESTS	+= libtracefs
35FEATURE_TESTS	+= libcpupower
36FEATURE_DISPLAY	:= libtraceevent
37FEATURE_DISPLAY	+= libtracefs
38FEATURE_DISPLAY	+= libcpupower
39
40ifeq ($(V),1)
41  Q		=
42else
43  Q		= @
44endif
45
46all: $(RTLA)
47
48include $(srctree)/tools/build/Makefile.include
49include Makefile.rtla
50
51# check for dependencies only on required targets
52NON_CONFIG_TARGETS := clean install tarball doc doc_clean doc_install
53
54config		:= 1
55ifdef MAKECMDGOALS
56ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
57 config		:= 0
58endif
59endif
60
61ifeq ($(config),1)
62  include $(srctree)/tools/build/Makefile.feature
63  include Makefile.config
64endif
65
66CFLAGS		+= $(INCLUDES) $(LIB_INCLUDES)
67
68export CFLAGS OUTPUT srctree
69
70$(RTLA): $(RTLA_IN)
71	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RTLA) $(RTLA_IN) $(EXTLIBS)
72
73static: $(RTLA_IN)
74	$(eval LDFLAGS += -static)
75	$(QUIET_LINK)$(CC) -static $(LDFLAGS) -o $(RTLA)-static $(RTLA_IN)  $(EXTLIBS)
76
77rtla.%: fixdep FORCE
78	make -f $(srctree)/tools/build/Makefile.build dir=. $@
79
80$(RTLA_IN): fixdep FORCE
81	make $(build)=rtla
82
83clean: doc_clean fixdep-clean
84	$(call QUIET_CLEAN, rtla)
85	$(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
86	$(Q)rm -f rtla rtla-static fixdep FEATURE-DUMP rtla-*
87	$(Q)rm -rf feature
88.PHONY: FORCE clean
v6.9.4
 1# SPDX-License-Identifier: GPL-2.0-only
 2
 3ifeq ($(srctree),)
 4  srctree	:= $(patsubst %/,%,$(dir $(CURDIR)))
 5  srctree	:= $(patsubst %/,%,$(dir $(srctree)))
 6  srctree	:= $(patsubst %/,%,$(dir $(srctree)))
 7endif
 8
 9include $(srctree)/tools/scripts/Makefile.include
10
11# O is an alias for OUTPUT
12OUTPUT          := $(O)
13
14ifeq ($(OUTPUT),)
15  OUTPUT        := $(CURDIR)
16else
17  # subdir is used by the ../Makefile in $(call descend,)
18  ifneq ($(subdir),)
19    OUTPUT        := $(OUTPUT)/$(subdir)
20  endif
21endif
22
23ifneq ($(patsubst %/,,$(lastword $(OUTPUT))),)
24  OUTPUT        := $(OUTPUT)/
25endif
26
27RTLA		:= $(OUTPUT)rtla
28RTLA_IN		:= $(RTLA)-in.o
29
30VERSION		:= $(shell sh -c "make -sC ../../.. kernelversion | grep -v make")
31DOCSRC		:= ../../../Documentation/tools/rtla/
32
33FEATURE_TESTS	:= libtraceevent
34FEATURE_TESTS	+= libtracefs
 
35FEATURE_DISPLAY	:= libtraceevent
36FEATURE_DISPLAY	+= libtracefs
 
37
38ifeq ($(V),1)
39  Q		=
40else
41  Q		= @
42endif
43
44all: $(RTLA)
45
46include $(srctree)/tools/build/Makefile.include
47include Makefile.rtla
48
49# check for dependencies only on required targets
50NON_CONFIG_TARGETS := clean install tarball doc doc_clean doc_install
51
52config		:= 1
53ifdef MAKECMDGOALS
54ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
55 config		:= 0
56endif
57endif
58
59ifeq ($(config),1)
60  include $(srctree)/tools/build/Makefile.feature
61  include Makefile.config
62endif
63
64CFLAGS		+= $(INCLUDES) $(LIB_INCLUDES)
65
66export CFLAGS OUTPUT srctree
67
68$(RTLA): $(RTLA_IN)
69	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RTLA) $(RTLA_IN) $(EXTLIBS)
70
71static: $(RTLA_IN)
72	$(eval LDFLAGS += -static)
73	$(QUIET_LINK)$(CC) -static $(LDFLAGS) -o $(RTLA)-static $(RTLA_IN)  $(EXTLIBS)
74
75rtla.%: fixdep FORCE
76	make -f $(srctree)/tools/build/Makefile.build dir=. $@
77
78$(RTLA_IN): fixdep FORCE
79	make $(build)=rtla
80
81clean: doc_clean fixdep-clean
82	$(call QUIET_CLEAN, rtla)
83	$(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
84	$(Q)rm -f rtla rtla-static fixdep FEATURE-DUMP rtla-*
85	$(Q)rm -rf feature
86.PHONY: FORCE clean