Ilya Yanok | eb81955 | 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 |
| 12 | |
| 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) |
| 17 | |
| 18 | COBJS := $(sort $(COBJS-y)) |
| 19 | SRCS := $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | |
| 22 | all: $(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 |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |
| 36 | |