Ilya Yanok | 06bb920 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 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 |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 12 | COBJS-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o |
Ilya Yanok | cc0fcbf | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_USB_MUSB_AM35X) += am35x.o |
Ilya Yanok | a3292f2 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o |
Ilya Yanok | 06bb920 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 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 | ######################################################################### |
| 39 | |