blob: f01fb16ded17252f1b87960328214c19c095326a [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
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