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