Makefile 1018 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # See file CREDITS for list of people who contributed to this
  3. # project.
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License
  7. # version 2 as published by the Free Software Foundation.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. include $(TOPDIR)/config.mk
  15. LIB = $(obj)lib$(SOC).o
  16. SOBJS := lowlevel_init.o
  17. COBJS := init.o reset.o timer.o
  18. SRCS := $(SOBJS:.o=.c) $(COBJS:.o=.c)
  19. OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
  20. all: $(obj).depend $(LIB)
  21. $(LIB): $(OBJS)
  22. $(call cmd_link_o_target, $(OBJS))
  23. #########################################################################
  24. # defines $(obj).depend target
  25. include $(SRCTREE)/rules.mk
  26. sinclude $(obj).depend
  27. #########################################################################