blob: c23bef1cc279d39d6a0937a9364f992950127a2f [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 Yanok833a53c2012-11-06 13:48:25 +000013COBJS-$(CONFIG_USB_MUSB_AM35X) += am35x.o
Ilya Yanok673a5242012-11-06 13:48:29 +000014COBJS-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o
Ilya Yanokeb819552012-11-06 13:48:21 +000015
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