summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/Makefile
diff options
context:
space:
mode:
authorH Hartley Sweeten2012-12-20 01:49:24 +0100
committerGreg Kroah-Hartman2013-01-07 23:51:11 +0100
commitfd958f7eb4d0959f65377aaab4a63ba33cc53f06 (patch)
tree518cb50c95181a6450117cfd1baee5e38305d459 /drivers/staging/comedi/Makefile
parentStaging: comedi: addi_common.c: checkpatch.pl fixes (diff)
downloadkernel-qcow2-linux-fd958f7eb4d0959f65377aaab4a63ba33cc53f06.tar.gz
kernel-qcow2-linux-fd958f7eb4d0959f65377aaab4a63ba33cc53f06.tar.xz
kernel-qcow2-linux-fd958f7eb4d0959f65377aaab4a63ba33cc53f06.zip
staging: comedi: Makefile: conditionally compile multi-file core module
Instead of using the #ifdef'ery in the comedi_compat32.c and proc.c files to include/exclude them from the comedi core, modify the Makefile to include those files automatically when enabled in the .config. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/Makefile')
-rw-r--r--drivers/staging/comedi/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/staging/comedi/Makefile b/drivers/staging/comedi/Makefile
index 8dbd306fef88..f895c0ccc3c8 100644
--- a/drivers/staging/comedi/Makefile
+++ b/drivers/staging/comedi/Makefile
@@ -1,11 +1,8 @@
-obj-$(CONFIG_COMEDI) += comedi.o
+comedi-y := comedi_fops.o range.o drivers.o
+comedi-$(CONFIG_PROC_FS) += proc.o
+comedi-$(CONFIG_COMPAT) += comedi_compat32.o
-obj-$(CONFIG_COMEDI) += kcomedilib/
-obj-$(CONFIG_COMEDI) += drivers/
+obj-$(CONFIG_COMEDI) += comedi.o
-comedi-y := \
- comedi_fops.o \
- proc.o \
- range.o \
- drivers.o \
- comedi_compat32.o \
+obj-$(CONFIG_COMEDI) += kcomedilib/
+obj-$(CONFIG_COMEDI) += drivers/