Makefile 960 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # for USB OTG silicon based on Mentor Graphics INVENTRA designs
  3. #
  4. include $(TOPDIR)/config.mk
  5. LIB := $(obj)libusb_musb-new.o
  6. COBJS-$(CONFIG_MUSB_GADGET) += musb_gadget.o musb_gadget_ep0.o musb_core.o
  7. COBJS-$(CONFIG_MUSB_GADGET) += musb_uboot.o
  8. COBJS-$(CONFIG_MUSB_HOST) += musb_host.o musb_core.o musb_uboot.o
  9. COBJS-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o
  10. CFLAGS_NO_WARN := $(call cc-option,-Wno-unused-variable) \
  11. $(call cc-option,-Wno-unused-but-set-variable) \
  12. $(call cc-option,-Wno-unused-label)
  13. CFLAGS += $(CFLAGS_NO_WARN)
  14. COBJS := $(sort $(COBJS-y))
  15. SRCS := $(COBJS:.o=.c)
  16. OBJS := $(addprefix $(obj),$(COBJS))
  17. all: $(LIB)
  18. #$(LIB): $(OBJS)
  19. $(LIB): $(obj).depend $(OBJS)
  20. $(call cmd_link_o_target, $(OBJS))
  21. #########################################################################
  22. # defines $(obj).depend target
  23. include $(SRCTREE)/rules.mk
  24. sinclude $(obj).depend
  25. #########################################################################