Import 2.3.12pre1
[davej-history.git] / drivers / misc / Makefile
blob505a9d100470c6feae2ef2f34ff03ed167a1936a
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
9 # parent makes..
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.
15 SUB_DIRS :=
16 MOD_SUB_DIRS := $(SUB_DIRS)
17 ALL_SUB_DIRS := $(SUB_DIRS)
19 L_TARGET := misc.a
20 MX_OBJS :=
21 LX_OBJS :=
22 MI_OBJS :=
23 MIX_OBJS :=
25 ifeq ($(CONFIG_PARPORT),y)
26 L_OBJS += parport_share.o parport_ieee1284.o parport_ieee1284_ops.o \
27 parport_procfs.o
29 ifeq ($(CONFIG_PARPORT_1284),y)
30 L_OBJS += parport_daisy.o parport_probe.o
31 endif
33 ifeq ($(CONFIG_PARPORT_PC),y)
34 LX_OBJS += parport_pc.o
35 else
36 ifeq ($(CONFIG_PARPORT_PC),m)
37 M_OBJS += parport_pc.o
38 endif
39 endif
40 ifeq ($(CONFIG_PARPORT_AX),y)
41 LX_OBJS += parport_ax.o
42 else
43 ifeq ($(CONFIG_PARPORT_AX),m)
44 M_OBJS += parport_ax.o
45 endif
46 endif
47 ifeq ($(CONFIG_PARPORT_AMIGA),y)
48 LX_OBJS += parport_amiga.o
49 else
50 ifeq ($(CONFIG_PARPORT_AMIGA),m)
51 M_OBJS += parport_amiga.o
52 endif
53 endif
54 ifeq ($(CONFIG_PARPORT_MFC3),y)
55 LX_OBJS += parport_mfc3.o
56 else
57 ifeq ($(CONFIG_PARPORT_MFC3),m)
58 M_OBJS += parport_mfc3.o
59 endif
60 endif
61 ifeq ($(CONFIG_PARPORT_ATARI),y)
62 LX_OBJS += parport_atari.o
63 else
64 ifeq ($(CONFIG_PARPORT_ATARI),m)
65 M_OBJS += parport_atari.o
66 endif
67 endif
68 LX_OBJS += parport_init.o
69 else
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
74 endif
75 ifneq ($(CONFIG_PROC_FS),n)
76 MI_OBJS += parport_procfs.o
77 endif
78 MIX_OBJS += parport_init.o
79 M_OBJS += parport.o
80 endif
81 ifeq ($(CONFIG_PARPORT_PC),m)
82 M_OBJS += parport_pc.o
83 endif
84 ifeq ($(CONFIG_PARPORT_AX),m)
85 M_OBJS += parport_ax.o
86 endif
87 ifeq ($(CONFIG_PARPORT_AMIGA),m)
88 M_OBJS += parport_amiga.o
89 endif
90 ifeq ($(CONFIG_PARPORT_MFC3),m)
91 M_OBJS += parport_mfc3.o
92 endif
93 ifeq ($(CONFIG_PARPORT_ATARI),m)
94 M_OBJS += parport_atari.o
95 endif
96 endif
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)