Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Copyright 2008 Extreme Engineering Solutions, Inc.
  3. # Copyright 2007 Freescale Semiconductor, Inc.
  4. # (C) Copyright 2001-2006
  5. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  6. #
  7. # See file CREDITS for list of people who contributed to this
  8. # project.
  9. #
  10. # This program is free software; you can redistribute it and/or
  11. # modify it under the terms of the GNU General Public License as
  12. # published by the Free Software Foundation; either version 2 of
  13. # the License, or (at your option) any later version.
  14. #
  15. include $(TOPDIR)/config.mk
  16. LIB = $(obj)lib$(BOARD).a
  17. COBJS-y += $(BOARD).o
  18. COBJS-y += ddr.o
  19. COBJS-y += law.o
  20. COBJS-y += tlb.o
  21. SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
  22. OBJS := $(addprefix $(obj),$(COBJS-y))
  23. SOBJS := $(addprefix $(obj),$(SOBJS-y))
  24. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  25. $(AR) $(ARFLAGS) $@ $(OBJS)
  26. clean:
  27. rm -f $(OBJS) $(SOBJS)
  28. distclean: clean
  29. rm -f $(LIB) core *.bak .depend
  30. #########################################################################
  31. # defines $(obj).depend target
  32. include $(SRCTREE)/rules.mk
  33. sinclude $(obj).depend
  34. #########################################################################