Skip to content

Commit

Permalink
Input: iforce - clean up Makefile
Browse files Browse the repository at this point in the history
Use <module>-y notation to specify list of objects comprising iforce
module and conditionally pull in USB and RS232 support.

Also remove custom compiler flags and rely on general makefile rules
for enabling warnings.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Nov 22, 2010
1 parent ebde50d commit 33e808c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions drivers/input/joystick/iforce/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@
# By Johann Deneux <johann.deneux@gmail.com>
#

# Goal definition
iforce-objs := iforce-ff.o iforce-main.o iforce-packets.o

obj-$(CONFIG_JOYSTICK_IFORCE) += iforce.o

ifeq ($(CONFIG_JOYSTICK_IFORCE_232),y)
iforce-objs += iforce-serio.o
endif

ifeq ($(CONFIG_JOYSTICK_IFORCE_USB),y)
iforce-objs += iforce-usb.o
endif

EXTRA_CFLAGS = -Werror-implicit-function-declaration
iforce-y := iforce-ff.o iforce-main.o iforce-packets.o
iforce-$(CONFIG_JOYSTICK_IFORCE_232) += iforce-serio.o
iforce-$(CONFIG_JOYSTICK_IFORCE_USB) += iforce-usb.o

0 comments on commit 33e808c

Please sign in to comment.