]>
Commit | Line | Data |
---|---|---|
eb81955b IY |
1 | # |
2 | # for USB OTG silicon based on Mentor Graphics INVENTRA designs | |
3 | # | |
4 | ||
5 | include $(TOPDIR)/config.mk | |
6 | ||
7 | LIB := $(obj)libusb_musb-new.o | |
8 | ||
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 | |
37931f02 | 12 | COBJS-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o |
833a53c6 | 13 | COBJS-$(CONFIG_USB_MUSB_AM35X) += am35x.o |
673a524b | 14 | COBJS-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o |
eb81955b IY |
15 | |
16 | CFLAGS_NO_WARN := $(call cc-option,-Wno-unused-variable) \ | |
17 | $(call cc-option,-Wno-unused-but-set-variable) \ | |
18 | $(call cc-option,-Wno-unused-label) | |
19 | CFLAGS += $(CFLAGS_NO_WARN) | |
20 | ||
21 | COBJS := $(sort $(COBJS-y)) | |
22 | SRCS := $(COBJS:.o=.c) | |
23 | OBJS := $(addprefix $(obj),$(COBJS)) | |
24 | ||
25 | all: $(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 | |
34 | include $(SRCTREE)/rules.mk | |
35 | ||
36 | sinclude $(obj).depend | |
37 | ||
38 | ######################################################################### |