xref: /openbmc/u-boot/drivers/usb/musb-new/Makefile (revision eb81955bf0e34aeb33930cd4b2f63aa05c791fef)
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
12
13CFLAGS_NO_WARN := $(call cc-option,-Wno-unused-variable) \
14			$(call cc-option,-Wno-unused-but-set-variable) \
15			$(call cc-option,-Wno-unused-label)
16CFLAGS += $(CFLAGS_NO_WARN)
17
18COBJS	:= $(sort $(COBJS-y))
19SRCS	:= $(COBJS:.o=.c)
20OBJS	:= $(addprefix $(obj),$(COBJS))
21
22all:	$(LIB)
23
24#$(LIB):	$(OBJS)
25$(LIB):	$(obj).depend $(OBJS)
26	$(call cmd_link_o_target, $(OBJS))
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################
36
37