#
# 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).

USE_STANDARD_AS_RULE := true

O_TARGET		:= sa1100.o

# Object file lists.

obj-y			:= arch.o hw.o dma-sa1100.o time.o # mm.o
obj-m			:= gpio.o
obj-n			:=
obj-			:=

export-objs		:= hw.o dma-sa1100.o dma-sa1111.o leds.o hwtimer.o power.o

obj-$(CONFIG_SA1111)	+= dma-sa1111.o
obj-$(CONFIG_LEDS)	+= leds.o
obj-$(CONFIG_SA1100_FREQUENCY_SCALE) += cpu-scale.o
obj-$(CONFIG_APM)	+= apm.o
obj-$(CONFIG_PROFILER)	+= hwtimer.o
obj-$(CONFIG_PM) += power.o suspend.o
obj-$(CONFIG_SA1100_REGMON) += regmon.o

obj-$(CONFIG_SA1100_USB) += sa1100_usb.o
obj-$(CONFIG_SA1100_USB_NETLINK) += usb-eth.o
obj-$(CONFIG_SA1100_USB_CHAR) += usb-char.o
obj-$(CONFIG_SA1100_OMNIMETER)    += omniiop.o
obj-$(CONFIG_SA1100_JORNADA720)   += jornada720.o

sa1100_usb-objs := usb_ctl.o usb_ep0.o usb_recv.o usb_send.o 

include $(TOPDIR)/Rules.make

sa1100_usb.o: $(sa1100_usb-objs)
	$(LD) -r -o $@ $(sa1100_usb-objs)

