summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/Makefile
blob: 5251d5090ba7ce9edfaa1139974f7d166d83606f (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# Makefile for the linux kernel.
#
# 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 in the main makefile...

# Dave Redman Frame Buffer tuning support.
# OK this is kind of ugly but it does allow drivers to be added fairly
# easily. and you can even choose what sort of support you want.
ifdef SUN_FB_CGSIX
 FB_OBJS +=	cgsix.o
endif
ifdef SUN_FB_CGTHREE
 FB_OBJS +=	cgthree.o
endif
ifdef SUN_FB_TCX
  FB_OBJS +=	tcx.o
endif
ifdef SUN_FB_BWTWO
 FB_OBJS +=	bwtwo.o
endif
ifdef SUN_FB_LEO
 FB_OBJS +=	leo.o
endif
ifdef SUN_FB_CGFOURTEEN
 FB_OBJS +=	cgfourteen.o
endif
ifdef TADPOLE_FB_WEITEK
 FB_OBJS +=	weitek.o
endif
ifdef SUN_FB_CREATOR
 ifeq ($(ARCH),sparc64)
 FB_OBJS += creator.o
 endif
endif
#ifdef SUN_FB_FAST_ONE
# FB_OBJS +=	sun_8bit_fast1.o
#endif
#ifdef SUN_FB_FAST_TWO
# FB_OBJS +=	sun_8bit_fast2.o
#endif
#ifdef SUN_FB_FAST_MONO
# FB_OBJS +=	sun_mono_fast1.o
#endif
#ifdef SUN_FB_GENERIC
# FB_OBJS +=	sun_8bit_generic.o
#endif

O_TARGET := sunchar.o
O_OBJ    := ${FB_OBJS} suncons.o sbuscons.o pcicons.o sunfb.o
O_OBJS   := ${O_OBJ} sunkbd.o sunkbdmap.o sunmouse.o sunserial.o zs.o
M_OBJS   :=

ifeq ($(ARCH),sparc64)

ifeq ($(CONFIG_PCI),y)

O_OBJS += su.o pcikbd.o

ifeq ($(CONFIG_SAB82532),y)
O_OBJS += sab82532.o
else
  ifeq ($(CONFIG_SAB82532),m)
  M_OBJS += sab82532.o
  endif
endif

endif # eq($(CONFIG_PCI,y)

ifeq ($(CONFIG_OBP_FLASH),y)
O_OBJS += flash.o
else
  ifeq ($(CONFIG_OBP_FLASH),m)
  M_OBJS += flash.o
  endif
endif

endif # eq($(ARCH),sparc64)

ifeq ($(CONFIG_SUN_OPENPROMIO),y)
O_OBJS += openprom.o
else
  ifeq ($(CONFIG_SUN_OPENPROMIO),m)
  M_OBJS += openprom.o
  endif
endif

ifeq ($(CONFIG_SUN_MOSTEK_RTC),y)
O_OBJS += rtc.o
else
  ifeq ($(CONFIG_SUN_MOSTEK_RTC),m)
  M_OBJS += rtc.o
  endif
endif

ifeq ($(CONFIG_SUN_BPP),y)
O_OBJS += bpp.o
else
  ifeq ($(CONFIG_SUN_BPP),m)
  M_OBJS += bpp.o
  endif
endif

ifeq ($(CONFIG_SUN_VIDEOPIX),y)
O_OBJS += vfc.o
else
  ifeq ($(CONFIG_SUN_VIDEOPIX),m)
  M_OBJS += vfc.o
  endif
endif

# Add PCI console/fb drivers here.
#
ifeq ($(CONFIG_PCI),y)
O_OBJS += mach64.o
endif

include $(TOPDIR)/Rules.make

sunkbdmap.o: sunkeymap.c

vfc.o: vfc_dev.o vfc_i2c.o
	$(LD) -r -o vfc.o vfc_dev.o vfc_i2c.o