Anatolij Gustschin | d639890 | 2013-02-08 00:03:48 +0000 | [diff] [blame^] | 1 | # |
| 2 | # (C) Copyright 2009 Wolfgang Denk <wd@denx.de> |
| 3 | # |
| 4 | # See file CREDITS for list of people who contributed to this |
| 5 | # project. |
| 6 | # |
| 7 | # This program is free software; you can redistribute it and/or |
| 8 | # modify it under the terms of the GNU General Public License as |
| 9 | # published by the Free Software Foundation; either version 2 of |
| 10 | # the License, or (at your option) any later version. |
| 11 | # |
| 12 | |
| 13 | include $(TOPDIR)/config.mk |
| 14 | |
| 15 | LIB = $(obj)lib$(BOARD).o |
| 16 | |
| 17 | COBJS-y := $(BOARD).o |
| 18 | |
| 19 | COBJS := $(COBJS-y) |
| 20 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) |
| 25 | $(call cmd_link_o_target, $(OBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |