Import 2.3.16
[davej-history.git] / drivers / parport / Makefile
blob68d5120e29559c03be1c2aee03a5285f6b52c86d
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 := parport.a
20 MX_OBJS :=
21 LX_OBJS :=
22 MI_OBJS :=
23 MIX_OBJS :=
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
30 endif
32 ifeq ($(CONFIG_PARPORT_PC),y)
33 LX_OBJS += parport_pc.o
34 else
35 ifeq ($(CONFIG_PARPORT_PC),m)
36 MX_OBJS += parport_pc.o
37 endif
38 endif
39 ifeq ($(CONFIG_PARPORT_AMIGA),y)
40 LX_OBJS += parport_amiga.o
41 else
42 ifeq ($(CONFIG_PARPORT_AMIGA),m)
43 M_OBJS += parport_amiga.o
44 endif
45 endif
46 ifeq ($(CONFIG_PARPORT_MFC3),y)
47 LX_OBJS += parport_mfc3.o
48 else
49 ifeq ($(CONFIG_PARPORT_MFC3),m)
50 M_OBJS += parport_mfc3.o
51 endif
52 endif
53 ifeq ($(CONFIG_PARPORT_ATARI),y)
54 LX_OBJS += parport_atari.o
55 else
56 ifeq ($(CONFIG_PARPORT_ATARI),m)
57 M_OBJS += parport_atari.o
58 endif
59 endif
60 ifeq ($(CONFIG_PARPORT_SUNBPP),y)
61 LX_OBJS += parport_sunbpp.o
62 else
63 ifeq ($(CONFIG_PARPORT_SUNBPP),m)
64 MX_OBJS += parport_sunbpp.o
65 endif
66 endif
67 LX_OBJS += init.o
68 else
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
73 endif
74 ifneq ($(CONFIG_PROC_FS),n)
75 MI_OBJS += procfs.o
76 endif
77 MIX_OBJS += init.o
78 M_OBJS += parport.o
79 endif
80 ifeq ($(CONFIG_PARPORT_PC),m)
81 MX_OBJS += parport_pc.o
82 endif
83 ifeq ($(CONFIG_PARPORT_AMIGA),m)
84 M_OBJS += parport_amiga.o
85 endif
86 ifeq ($(CONFIG_PARPORT_MFC3),m)
87 M_OBJS += parport_mfc3.o
88 endif
89 ifeq ($(CONFIG_PARPORT_ATARI),m)
90 M_OBJS += parport_atari.o
91 endif
92 ifeq ($(CONFIG_PARPORT_SUNBPP),m)
93 M_OBJS += parport_sunbpp.o
94 endif
95 endif
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)