blob: a7534234dc96f3dfff214ec5c2097ee811070552 [file] [log] [blame]
Ilya Yanokeb819552012-11-06 13:48:21 +00001#
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
Ilya Yanok37931f02012-11-06 13:48:22 +000012COBJS-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o
Ilya Yanokeb819552012-11-06 13:48:21 +000013
14CFLAGS_NO_WARN := $(call cc-option,-Wno-unused-variable) \
15 $(call cc-option,-Wno-unused-but-set-variable) \
16 $(call cc-option,-Wno-unused-label)
17CFLAGS += $(CFLAGS_NO_WARN)
18
19COBJS := $(sort $(COBJS-y))
20SRCS := $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22
23all: $(LIB)
24
25#$(LIB): $(OBJS)
26$(LIB): $(obj).depend $(OBJS)
27 $(call cmd_link_o_target, $(OBJS))
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################
37