Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 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 | |
| 15 | include $(TOPDIR)/config.mk |
| 16 | |
| 17 | LIB = $(obj)lib$(SOC).o |
| 18 | |
| 19 | SOBJS := lowlevel_init.o |
Stephen Warren | 91ea288 | 2013-01-29 16:37:36 +0000 | [diff] [blame] | 20 | COBJS := init.o reset.o timer.o mbox.o |
Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 21 | |
| 22 | SRCS := $(SOBJS:.o=.c) $(COBJS:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 24 | |
| 25 | all: $(obj).depend $(LIB) |
| 26 | |
| 27 | $(LIB): $(OBJS) |
| 28 | $(call cmd_link_o_target, $(OBJS)) |
| 29 | |
| 30 | ######################################################################### |
| 31 | |
| 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |
| 36 | |
| 37 | ######################################################################### |