Makefile 923 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright 2010-2011 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).o
  11. COBJS-y += $(BOARD).o
  12. COBJS-y += law.o
  13. COBJS-y += tlb.o
  14. SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
  15. OBJS := $(addprefix $(obj),$(COBJS-y))
  16. SOBJS := $(addprefix $(obj),$(SOBJS))
  17. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  18. $(AR) $(ARFLAGS) $@ $(OBJS)
  19. clean:
  20. rm -f $(OBJS) $(SOBJS)
  21. distclean: clean
  22. rm -f $(LIB) core *.bak .depend
  23. #########################################################################
  24. # defines $(obj).depend target
  25. include $(SRCTREE)/rules.mk
  26. sinclude $(obj).depend
  27. #########################################################################