Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # (C) Copyright 2001-2006
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # Copyright (C) 2008 Atmel Corporation
  6. #
  7. # See file CREDITS for list of people who contributed to this project.
  8. #
  9. # This program is free software; you can redistribute it and/or modify it under
  10. # the terms of the GNU General Public License as published by the Free Software
  11. # Foundation; either version 2 of the License, or (at your option) any later
  12. # version.
  13. #
  14. # This program is distributed in the hope that it will be useful, but WITHOUT
  15. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  17. # details.
  18. #
  19. # You should have received a copy of the GNU General Public License along with
  20. # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  21. # Place, Suite 330, Boston, MA 02111-1307 USA
  22. include $(TOPDIR)/config.mk
  23. LIB := $(obj)lib$(BOARD).a
  24. COBJS := $(BOARD).o flash.o
  25. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  26. OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
  27. $(LIB): $(obj).depend $(OBJS)
  28. $(AR) $(ARFLAGS) $@ $(OBJS)
  29. #########################################################################
  30. # defines $(obj).depend target
  31. include $(SRCTREE)/rules.mk
  32. sinclude $(obj).depend
  33. #########################################################################