2 # Makefile for DWC_otg Highspeed USB controller driver
5 ifneq ($(KERNELRELEASE),)
8 # Use one of the following flags to compile the software in host-only or
10 #CPPFLAGS += -DDWC_HOST_ONLY
11 #CPPFLAGS += -DDWC_DEVICE_ONLY
13 CPPFLAGS += -Dlinux -DDWC_HS_ELECT_TST
17 dwc_otg-objs := dwc_otg_driver.o dwc_otg_attr.o
18 dwc_otg-objs += dwc_otg_cil.o dwc_otg_cil_intr.o
19 dwc_otg-objs += dwc_otg_pcd.o dwc_otg_pcd_intr.o
20 dwc_otg-objs += dwc_otg_hcd.o dwc_otg_hcd_intr.o dwc_otg_hcd_queue.o
24 KDIR := /remote/d5290p01/usb/linux-2.6.12.2
26 CROSS_COMPILE := /remote/d5290p01/usb/tools/arm/bin/arm-none-elf-
30 CTAGS := /usr/bin/ctags
31 DOXYGEN := /remote/d5290p01/usb/tools/bin/doxygen
34 $(MAKE) -C$(KDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
36 docs: $(wildcard *.[hc]) doc/doxygen.cfg
37 $(DOXYGEN) doc/doxygen.cfg
39 tags: $(wildcard *.[hc])
40 $(CTAGS) -e $(wildcard *.[hc]) $(wildcard linux/*.[hc]) $(wildcard $(KDIR)/include/linux/usb*.h)
45 rm -rf *.o *.ko .*cmd *.mod.c .tmp_versions