#
#    Copyright (C) 2009-2010  Samvinesh Christopher - American Megatrends Inc.
# 
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
# 
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
# 
#    You should have received a copy of the GNU General Public License along
#    with this program; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

DEBUG  := n
TARGET := usbe

#Porting files
OBJS :=  porting/devtable.o porting/hub.o

# Hardware layer
OBJS := $(OBJS) hardware/seusb11/seusb11.o hardware/seusb11/seusb11_intr.o
OBJS := $(OBJS) hardware/seusb20/seusb20.o hardware/seusb20/seusb20_intr.o

OBJS := $(OBJS) dev/devices.o 
OBJS := $(OBJS) dev/bot/bot.o  
OBJS := $(OBJS) dev/hid/keybd.o dev/hid/mouse.o

#Core USB functions 
OBJS := $(OBJS) core/coreusb.o core/descriptors.o core/setup.o core/entry.o

# Generic iUSB related
OBJS := $(OBJS) iusb/iusb-scsi.o iusb/iusb-helper.o 
OBJS := $(OBJS) iusb/iusb-hid.o iusb/iusb-cdrom.o  
OBJS := $(OBJS) iusb/iusb-hdisk.o

#Vendor Specific iUSB
OBJS := $(OBJS) iusb/iusb-vendor.o 

# OS dependent 
OBJS := $(OBJS) arch/driver.o arch/linux.o arch/module.o		

EXTRA_CFLAGS += -I$(PWD)/hardware/seusb11 -I$(PWD)/hardware/seusb20  
EXTRA_CFLAGS += -I$(PWD)/../../include -I$(PWD)/../../../../common/include/usb
EXTRA_CFLAGS += -I$(PWD)/../../../../common/include/global
EXTRA_CFLAGS += -I$(PWD)/include -I$(PWD)/arch -I$(PWD)/porting
EXTRA_CFLAGS += -Wall -Werror
EXTRA_CFLAGS += -Iibmc/include -Iibmc/usbe/include -Iibmc/usbe/arch
EXTRA_CFLAGS += -include arch/arm/include/asm/projdef.h
#EXTRA_CFLAGS += -DLUN_BOT=CFG_PROJ_LUN_BOT


obj-$(CONFIG_IBMC_USBE)	:= $(TARGET).o
$(TARGET)-objs := $(OBJS)
