#
# (C) Copyright 2010
#
#

include $(TOPDIR)/config.mk

# LIB 	:= $(obj)libapm821x1.a
LIB 	:= $(obj)libusb_apm821x1.a

AOBJS	=
COBJS-$(CONFIG_USB_OTG)	+= usb_otg.o usb_otg_cil.o usb_otg_hcd.o

COBJS	:= $(COBJS-y)
SRCS	:= $(AOBJS:.o=.S) $(COBJS:.o=.c)
OBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS))

CPPFLAGS += -I..

all:	$(LIB) $(AOBJS)

$(LIB):	$(obj).depend $(OBJS)
	$(AR) $(ARFLAGS) $@ $(OBJS)

#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################
