Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Arnd Bergmann | 14fbff6 | 2016-04-25 18:03:08 +0200 | [diff] [blame] | 2 | obj-$(CONFIG_SAMPLE_CONNECTOR) += cn_test.o |
Randy Dunlap | 3794f3e | 2008-08-12 15:09:06 -0700 | [diff] [blame] | 3 | |
| 4 | # List of programs to build |
Arnd Bergmann | 14fbff6 | 2016-04-25 18:03:08 +0200 | [diff] [blame] | 5 | ifdef CONFIG_SAMPLE_CONNECTOR |
Randy Dunlap | 3794f3e | 2008-08-12 15:09:06 -0700 | [diff] [blame] | 6 | hostprogs-y := ucon |
Arnd Bergmann | 14fbff6 | 2016-04-25 18:03:08 +0200 | [diff] [blame] | 7 | endif |
Randy Dunlap | 3794f3e | 2008-08-12 15:09:06 -0700 | [diff] [blame] | 8 | |
| 9 | # Tell kbuild to always build the programs |
| 10 | always := $(hostprogs-y) |
| 11 | |
| 12 | HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include |
Mike Frysinger | 37cf2b8 | 2009-07-17 10:14:26 -0700 | [diff] [blame] | 13 | |
| 14 | all: modules |
| 15 | |
| 16 | modules clean: |
Uwe Kleine-König | e19b7ce | 2016-11-22 09:30:26 +0100 | [diff] [blame] | 17 | $(MAKE) -C ../.. SUBDIRS=$(CURDIR) $@ |