Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
  3. #
  4. # (C) Copyright 2000-2008
  5. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  6. #
  7. # This program is free software; you can redistribute it and/or modify it
  8. # under the terms and conditions of the GNU General Public License,
  9. # version 2, as published by the Free Software Foundation.
  10. #
  11. # This program is distributed in the hope it will be useful, but WITHOUT
  12. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  14. # more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. include $(TOPDIR)/config.mk
  20. LIB = $(obj)lib$(SOC).o
  21. COBJS-y += cpu.o
  22. SRCS := $(COBJS-y:.o=.c)
  23. OBJS := $(addprefix $(obj),$(COBJS-y))
  24. all: $(obj).depend $(LIB)
  25. $(LIB): $(OBJS)
  26. $(call cmd_link_o_target, $(OBJS))
  27. #########################################################################
  28. # defines $(obj).depend target
  29. include $(SRCTREE)/rules.mk
  30. sinclude $(obj).depend
  31. #########################################################################