Makefile 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright 2010 Freescale Semiconductor, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU General Public License as published by the Free
  6. # Software Foundation; either version 2 of the License, or (at your option)
  7. # any later version.
  8. #
  9. include $(TOPDIR)/config.mk
  10. LIB = $(obj)lib$(BOARD).a
  11. COBJS-y += $(BOARD).o
  12. COBJS-y += ddr.o
  13. COBJS-y += law.o
  14. COBJS-y += tlb.o
  15. COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
  16. SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
  17. OBJS := $(addprefix $(obj),$(COBJS-y))
  18. SOBJS := $(addprefix $(obj),$(SOBJS))
  19. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  20. $(AR) $(ARFLAGS) $@ $(OBJS)
  21. clean:
  22. rm -f $(OBJS) $(SOBJS)
  23. distclean: clean
  24. rm -f $(LIB) core *.bak .depend
  25. #########################################################################
  26. # defines $(obj).depend target
  27. include $(SRCTREE)/rules.mk
  28. sinclude $(obj).depend
  29. #########################################################################