2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
5 include $(TOPDIR
)/config.mk
7 LIB
:= $(obj
)libusb_musb-new.o
9 COBJS-
$(CONFIG_MUSB_GADGET
) += musb_gadget.o musb_gadget_ep0.o musb_core.o
10 COBJS-
$(CONFIG_MUSB_GADGET
) += musb_uboot.o
11 COBJS-
$(CONFIG_MUSB_HOST
) += musb_host.o musb_core.o musb_uboot.o
13 CFLAGS_NO_WARN
:= $(call cc-option
,-Wno-unused-variable
) \
14 $(call cc-option
,-Wno-unused-but-set-variable
) \
15 $(call cc-option
,-Wno-unused-label
)
16 CFLAGS
+= $(CFLAGS_NO_WARN
)
18 COBJS
:= $(sort $(COBJS-y
))
19 SRCS
:= $(COBJS
:.o
=.c
)
20 OBJS
:= $(addprefix $(obj
),$(COBJS
))
25 $(LIB
): $(obj
).depend
$(OBJS
)
26 $(call cmd_link_o_target
, $(OBJS
))
28 #########################################################################
30 # defines $(obj).depend target
31 include $(SRCTREE
)/rules.mk
33 sinclude
$(obj
).depend
35 #########################################################################