]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/usb/musb-new/Makefile
musb-new: am35x backend driver
[karo-tx-uboot.git] / drivers / usb / musb-new / Makefile
1 #
2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
3 #
4
5 include $(TOPDIR)/config.mk
6
7 LIB     := $(obj)libusb_musb-new.o
8
9 COBJS-$(CONFIG_MUSB_GADGET) += musb_gadget.o musb_gadget_ep0.o musb_core.o
10 COBJS-$(CONFIG_MUSB_GADGET) += musb_uboot.o
11 COBJS-$(CONFIG_MUSB_HOST) += musb_host.o musb_core.o musb_uboot.o
12 COBJS-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o
13 COBJS-$(CONFIG_USB_MUSB_AM35X) += am35x.o
14
15 CFLAGS_NO_WARN := $(call cc-option,-Wno-unused-variable) \
16                         $(call cc-option,-Wno-unused-but-set-variable) \
17                         $(call cc-option,-Wno-unused-label)
18 CFLAGS += $(CFLAGS_NO_WARN)
19
20 COBJS   := $(sort $(COBJS-y))
21 SRCS    := $(COBJS:.o=.c)
22 OBJS    := $(addprefix $(obj),$(COBJS))
23
24 all:    $(LIB)
25
26 #$(LIB):        $(OBJS)
27 $(LIB): $(obj).depend $(OBJS)
28         $(call cmd_link_o_target, $(OBJS))
29
30 #########################################################################
31
32 # defines $(obj).depend target
33 include $(SRCTREE)/rules.mk
34
35 sinclude $(obj).depend
36
37 #########################################################################
38