Makefile 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright 2007-2008 Freescale Semiconductor, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License as
  6. # published by the Free Software Foundation; either version 2 of
  7. # the License, or (at your option) 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. SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
  16. OBJS := $(addprefix $(obj),$(COBJS-y))
  17. SOBJS := $(addprefix $(obj),$(SOBJS-y))
  18. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  19. $(AR) $(ARFLAGS) $@ $(OBJS)
  20. clean:
  21. rm -f $(OBJS) $(SOBJS)
  22. distclean: clean
  23. rm -f $(LIB) core *.bak .depend
  24. #########################################################################
  25. # defines $(obj).depend target
  26. include $(SRCTREE)/rules.mk
  27. sinclude $(obj).depend
  28. #########################################################################