Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Copyright (c) 2011 The Chromium OS Authors.
  3. #
  4. # (C) Copyright 2008
  5. # Graeme Russ, graeme.russ@gmail.com.
  6. #
  7. # (C) Copyright 2006
  8. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  9. #
  10. # (C) Copyright 2002
  11. # Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
  12. #
  13. # See file CREDITS for list of people who contributed to this
  14. # project.
  15. #
  16. # This program is free software; you can redistribute it and/or
  17. # modify it under the terms of the GNU General Public License as
  18. # published by the Free Software Foundation; either version 2 of
  19. # the License, or (at your option) any later version.
  20. #
  21. # This program is distributed in the hope that it will be useful,
  22. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. # GNU General Public License for more details.
  25. #
  26. # You should have received a copy of the GNU General Public License
  27. # along with this program; if not, write to the Free Software
  28. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29. # MA 02111-1307 USA
  30. #
  31. include $(TOPDIR)/config.mk
  32. LIB := $(obj)lib$(SOC).o
  33. SOBJS-$(CONFIG_SYS_COREBOOT) += car.o
  34. COBJS-$(CONFIG_SYS_COREBOOT) += coreboot.o
  35. COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
  36. COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
  37. COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
  38. COBJS-$(CONFIG_SYS_COREBOOT) += timestamp.o
  39. COBJS-$(CONFIG_PCI) += pci.o
  40. SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
  41. OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
  42. all: $(obj).depend $(LIB)
  43. $(LIB): $(OBJS)
  44. $(call cmd_link_o_target, $(OBJS))
  45. #########################################################################
  46. # defines $(obj).depend target
  47. include $(SRCTREE)/rules.mk
  48. sinclude $(obj).depend
  49. #########################################################################