#
# Makefile for misc devices that really don't fit anywhere else.
#
# 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 inherited from the
# parent makes..
#

O_TARGET := misc.o

export-objs			:= mcp-core.o mcp-sa1100.o mcp-pxa.o \
				   ucb1x00-core.o 

obj-$(CONFIG_MCP_SA1100)	+= mcp-core.o mcp-sa1100.o
obj-$(CONFIG_MCP_UCB1200)	+= ucb1x00-core.o
obj-$(CONFIG_MCP_UCB1200_AUDIO)	+= ucb1x00-audio.o
obj-$(CONFIG_MCP_UCB1200_TS)	+= ucb1x00-ts.o
obj-$(CONFIG_MCP_UCB1400_TS)	+= mcp-pxa.o ucb1x00-core.o ucb1x00-ts.o
obj-$(CONFIG_PXA_CERF_PDA)	+= cerf_ucb1400gpio.o

ifeq ($(CONFIG_SA1100_ASSABET),y)
obj-$(CONFIG_MCP_UCB1200)       += ucb1x00-assabet.o
endif

ifeq ($(CONFIG_SA1100_SIMPAD),y)
export-objs			+= ucb1x00-simpad.o
obj-$(CONFIG_MCP_UCB1200)       += ucb1x00-simpad.o
endif

obj-$(CONFIG_SWITCHES)          += switches.o

switches-objs-y                                 += switches-core.o
switches-objs-$(CONFIG_SWITCHES_SA1100)         += switches-sa1100.o
switches-objs-$(CONFIG_SWITCHES_UCB1X00)        += switches-ucb1x00.o

include $(TOPDIR)/Rules.make

switches.o: $(switches-objs-y)
	$(LD) $(LD_RFLAG) -r -o $@ $(switches-objs-y)

fastdep:
