-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
H Hartley Sweeten
authored and
Greg Kroah-Hartman
committed
Jan 7, 2013
1 parent
5eaf711
commit fd958f7
Showing
3 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters