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
+= share.o ieee1284.o ieee1284_ops.o procfs.o
28 ifeq ($(CONFIG_PARPORT_1284
),y
)
29 L_OBJS
+= daisy.o probe.o
32 ifeq ($(CONFIG_PARPORT_PC
),y
)
33 LX_OBJS
+= parport_pc.o
35 ifeq ($(CONFIG_PARPORT_PC
),m
)
36 MX_OBJS
+= parport_pc.o
39 ifeq ($(CONFIG_PARPORT_AMIGA
),y
)
40 LX_OBJS
+= parport_amiga.o
42 ifeq ($(CONFIG_PARPORT_AMIGA
),m
)
43 M_OBJS
+= parport_amiga.o
46 ifeq ($(CONFIG_PARPORT_MFC3
),y
)
47 LX_OBJS
+= parport_mfc3.o
49 ifeq ($(CONFIG_PARPORT_MFC3
),m
)
50 M_OBJS
+= parport_mfc3.o
53 ifeq ($(CONFIG_PARPORT_ATARI
),y
)
54 LX_OBJS
+= parport_atari.o
56 ifeq ($(CONFIG_PARPORT_ATARI
),m
)
57 M_OBJS
+= parport_atari.o
60 ifeq ($(CONFIG_PARPORT_SUNBPP
),y
)
61 LX_OBJS
+= parport_sunbpp.o
63 ifeq ($(CONFIG_PARPORT_SUNBPP
),m
)
64 MX_OBJS
+= parport_sunbpp.o
69 ifeq ($(CONFIG_PARPORT
),m
)
70 MI_OBJS
+= share.o ieee1284.o ieee1284_ops.o
71 ifeq ($(CONFIG_PARPORT_1284
),y
)
72 MI_OBJS
+= daisy.o probe.o
74 ifneq ($(CONFIG_PROC_FS
),n
)
80 ifeq ($(CONFIG_PARPORT_PC
),m
)
81 MX_OBJS
+= parport_pc.o
83 ifeq ($(CONFIG_PARPORT_AMIGA
),m
)
84 M_OBJS
+= parport_amiga.o
86 ifeq ($(CONFIG_PARPORT_MFC3
),m
)
87 M_OBJS
+= parport_mfc3.o
89 ifeq ($(CONFIG_PARPORT_ATARI
),m
)
90 M_OBJS
+= parport_atari.o
92 ifeq ($(CONFIG_PARPORT_SUNBPP
),m
)
93 M_OBJS
+= parport_sunbpp.o
97 include $(TOPDIR
)/Rules.make
99 # Special rule to build the composite parport.o module
100 parport.o
: $(MI_OBJS
) $(MIX_OBJS
)
101 $(LD
) $(LD_RFLAG
) -r
-o
$@
$(MI_OBJS
) $(MIX_OBJS
)