Makefile 915 B

123456789101112131415161718192021222324252627282930313233343536
  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. CFLAGS_NO_WARN := $(call cc-option,-Wno-unused-variable) \
  10. $(call cc-option,-Wno-unused-but-set-variable) \
  11. $(call cc-option,-Wno-unused-label)
  12. CFLAGS += $(CFLAGS_NO_WARN)
  13. COBJS := $(sort $(COBJS-y))
  14. SRCS := $(COBJS:.o=.c)
  15. OBJS := $(addprefix $(obj),$(COBJS))
  16. all: $(LIB)
  17. #$(LIB): $(OBJS)
  18. $(LIB): $(obj).depend $(OBJS)
  19. $(call cmd_link_o_target, $(OBJS))
  20. #########################################################################
  21. # defines $(obj).depend target
  22. include $(SRCTREE)/rules.mk
  23. sinclude $(obj).depend
  24. #########################################################################