File: count-lines.mk

package info (click to toggle)
nvidia-open-gpu-kernel-modules 550.163.01-4
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 87,488 kB
  • sloc: ansic: 1,143,669; cpp: 22,547; sh: 3,721; makefile: 627; python: 315
file content (25 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (6)
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
count:
	@echo "conftests:$(words $(ALL_CONFTESTS))" \
		  "objects:$(words $(NV_OBJECTS_DEPEND_ON_CONFTEST))" \
		  "modules:$(words $(NV_KERNEL_MODULES))"

.PHONY: count

# Include the top-level makefile to get $(NV_KERNEL_MODULES)
include Makefile

# Set $(src) for the to-be-included nvidia*.Kbuild files
src := $(CURDIR)

# Include nvidia*.Kbuild and append the nvidia*-y objects to ALL_OBJECTS
$(foreach _module, $(NV_KERNEL_MODULES),          \
     $(eval include $(_module)/$(_module).Kbuild) \
 )

# Concatenate all of the conftest lists; use $(sort ) to remove duplicates
ALL_CONFTESTS := $(sort $(NV_CONFTEST_FUNCTION_COMPILE_TESTS) \
                        $(NV_CONFTEST_GENERIC_COMPILE_TESTS)  \
                        $(NV_CONFTEST_MACRO_COMPILE_TESTS)    \
                        $(NV_CONFTEST_SYMBOL_COMPILE_TESTS)   \
                        $(NV_CONFTEST_TYPE_COMPILE_TESTS)     \
                  )