ifneq ($(KERNELRELEASE),)

EXTRA_CFLAGS := -DNATIVE -DDWC_HOST_ONLY -DEMBEDDED -D${SW_TARGET_ARCH}
EXTRA_CFLAGS += -I$(SW_COMMON_INSTALL_DEST) -I$(M)/include -I$(M)/../common/include

ifeq ($(DEBUG),y)
  EXTRA_CFLAGS += -O1 -g -DSHORT_DEBUG -DDEBUG # "-O1" is needed to expand inlines
endif


obj-m := ${DRIVER}.o

${DRIVER}-objs := dwc_otg_cil.o dwc_otg_cil_intr.o dwc_otg_driver.o \
                  dwc_otg_hcd.o dwc_otg_hcd_intr.o dwc_otg_hcd_queue.o \
                  dwc_otg_attr.o

endif
