2 # Makefile for the kernel miscellaneous drivers.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definitions are now inherited from the
11 # Note 3! Parport is the Borg. We have assimilated some other
12 # drivers in the `char', `net' and `scsi' directories, but left them
13 # there to allay suspicion.
16 MOD_SUB_DIRS
:= $(SUB_DIRS
)
17 ALL_SUB_DIRS
:= $(SUB_DIRS
)
25 ifeq ($(CONFIG_PARPORT
),y
)
26 L_OBJS
+= parport_share.o parport_ieee1284.o parport_ieee1284_ops.o \
29 ifeq ($(CONFIG_PARPORT_1284
),y
)
30 L_OBJS
+= parport_daisy.o parport_probe.o
33 ifeq ($(CONFIG_PARPORT_PC
),y
)
34 LX_OBJS
+= parport_pc.o
36 ifeq ($(CONFIG_PARPORT_PC
),m
)
37 M_OBJS
+= parport_pc.o
40 ifeq ($(CONFIG_PARPORT_AX
),y
)
41 LX_OBJS
+= parport_ax.o
43 ifeq ($(CONFIG_PARPORT_AX
),m
)
44 M_OBJS
+= parport_ax.o
47 ifeq ($(CONFIG_PARPORT_AMIGA
),y
)
48 LX_OBJS
+= parport_amiga.o
50 ifeq ($(CONFIG_PARPORT_AMIGA
),m
)
51 M_OBJS
+= parport_amiga.o
54 ifeq ($(CONFIG_PARPORT_MFC3
),y
)
55 LX_OBJS
+= parport_mfc3.o
57 ifeq ($(CONFIG_PARPORT_MFC3
),m
)
58 M_OBJS
+= parport_mfc3.o
61 ifeq ($(CONFIG_PARPORT_ATARI
),y
)
62 LX_OBJS
+= parport_atari.o
64 ifeq ($(CONFIG_PARPORT_ATARI
),m
)
65 M_OBJS
+= parport_atari.o
68 LX_OBJS
+= parport_init.o
70 ifeq ($(CONFIG_PARPORT
),m
)
71 MI_OBJS
+= parport_share.o parport_ieee1284.o parport_ieee1284_ops.o
72 ifeq ($(CONFIG_PARPORT_1284
),y
)
73 MI_OBJS
+= parport_daisy.o parport_probe.o
75 ifneq ($(CONFIG_PROC_FS
),n
)
76 MI_OBJS
+= parport_procfs.o
78 MIX_OBJS
+= parport_init.o
81 ifeq ($(CONFIG_PARPORT_PC
),m
)
82 M_OBJS
+= parport_pc.o
84 ifeq ($(CONFIG_PARPORT_AX
),m
)
85 M_OBJS
+= parport_ax.o
87 ifeq ($(CONFIG_PARPORT_AMIGA
),m
)
88 M_OBJS
+= parport_amiga.o
90 ifeq ($(CONFIG_PARPORT_MFC3
),m
)
91 M_OBJS
+= parport_mfc3.o
93 ifeq ($(CONFIG_PARPORT_ATARI
),m
)
94 M_OBJS
+= parport_atari.o
98 include $(TOPDIR
)/Rules.make
100 # Special rule to build the composite parport.o module
101 parport.o
: $(MI_OBJS
) $(MIX_OBJS
)
102 $(LD
) $(LD_RFLAG
) -r
-o
$@
$(MI_OBJS
) $(MIX_OBJS
)