mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
e19b7cee02
make already provides the current working directory in a variable, so make use of it instead of forking a shell. Also replace usage of PWD by CURDIR. PWD is provided by most shells, but not all, so this makes the build system more robust. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michal Marek <mmarek@suse.com>
17 lines
314 B
Makefile
17 lines
314 B
Makefile
obj-$(CONFIG_SAMPLE_CONNECTOR) += cn_test.o
|
|
|
|
# List of programs to build
|
|
ifdef CONFIG_SAMPLE_CONNECTOR
|
|
hostprogs-y := ucon
|
|
endif
|
|
|
|
# Tell kbuild to always build the programs
|
|
always := $(hostprogs-y)
|
|
|
|
HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include
|
|
|
|
all: modules
|
|
|
|
modules clean:
|
|
$(MAKE) -C ../.. SUBDIRS=$(CURDIR) $@
|