summaryrefslogtreecommitdiffstats
path: root/drivers/char/joystick/Makefile
blob: 3339fc83f436bc4e7e815f0e8b51d572fbd21a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#
# Makefile for the joystick drivers.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now inherited from the
# parent makes..
#

O_TARGET := js.o
O_OBJS   :=
M_OBJS   :=

ifeq ($(CONFIG_JOYSTICK),y)
O_OBJS += joystick.o
else
  ifeq ($(CONFIG_JOYSTICK),m)
  M_OBJS += joystick.o
  endif
endif

ifeq ($(CONFIG_JOY_AMIGA),y)
O_OBJS += joy-amiga.o
else
  ifeq ($(CONFIG_JOY_AMIGA),m)
  M_OBJS += joy-amiga.o
  endif
endif

ifeq ($(CONFIG_JOY_ANALOG),y)
O_OBJS += joy-analog.o
else
  ifeq ($(CONFIG_JOY_ANALOG),m)
  M_OBJS += joy-analog.o
  endif
endif

ifeq ($(CONFIG_JOY_ASSASIN),y)
O_OBJS += joy-assasin.o
else
  ifeq ($(CONFIG_JOY_ASSASIN),m)
  M_OBJS += joy-assasin.o
  endif
endif

ifeq ($(CONFIG_JOY_CONSOLE),y)
O_OBJS += joy-console.o
else
  ifeq ($(CONFIG_JOY_CONSOLE),m)
  M_OBJS += joy-console.o
  endif
endif

ifeq ($(CONFIG_JOY_DB9),y)
O_OBJS += joy-db9.o
else
  ifeq ($(CONFIG_JOY_DB9),m)
  M_OBJS += joy-db9.o
  endif
endif

ifeq ($(CONFIG_JOY_GRAVIS),y)
O_OBJS += joy-gravis.o
else
  ifeq ($(CONFIG_JOY_GRAVIS),m)
  M_OBJS += joy-gravis.o
  endif
endif

ifeq ($(CONFIG_JOY_LIGHTNING),y)
O_OBJS += joy-lightning.o
else
  ifeq ($(CONFIG_JOY_LIGHTNING),m)
  M_OBJS += joy-lightning.o
  endif
endif

ifeq ($(CONFIG_JOY_LOGITECH),y)
O_OBJS += joy-logitech.o
else
  ifeq ($(CONFIG_JOY_LOGITECH),m)
  M_OBJS += joy-logitech.o
  endif
endif

ifeq ($(CONFIG_JOY_SIDEWINDER),y)
O_OBJS += joy-sidewinder.o
else
  ifeq ($(CONFIG_JOY_SIDEWINDER),m)
  M_OBJS += joy-sidewinder.o
  endif
endif

ifeq ($(CONFIG_JOY_THRUSTMASTER),y)
O_OBJS += joy-thrustmaster.o
else 
  ifeq ($(CONFIG_JOY_THRUSTMASTER),m)
  M_OBJS += joy-thrustmaster.o
  endif
endif

ifeq ($(CONFIG_JOY_TURBOGRAFX),y)
O_OBJS += joy-turbografx.o
else 
  ifeq ($(CONFIG_JOY_TURBOGRAFX),m)
  M_OBJS += joy-turbografx.o
  endif
endif

include $(TOPDIR)/Rules.make