Michal Simek | dea68a7 | 2012-09-13 20:23:35 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2003 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2008 |
| 6 | # Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de> |
| 7 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | dea68a7 | 2012-09-13 20:23:35 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
| 13 | LIB = $(obj)lib$(SOC).o |
| 14 | |
| 15 | COBJS-y := timer.o |
| 16 | COBJS-y += cpu.o |
Michal Simek | eb1dfa7 | 2013-02-04 12:38:59 +0100 | [diff] [blame] | 17 | COBJS-y += slcr.o |
Michal Simek | dea68a7 | 2012-09-13 20:23:35 +0000 | [diff] [blame] | 18 | |
| 19 | COBJS := $(COBJS-y) |
| 20 | |
| 21 | SRCS := $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | |
| 24 | all: $(obj).depend $(LIB) |
| 25 | |
| 26 | $(LIB): $(OBJS) |
| 27 | $(call cmd_link_o_target, $(OBJS)) |
| 28 | |
| 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################### |