John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB = $(obj)lib$(SOC).o |
John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 10 | |
Matthias Weisser | 60e925d | 2011-07-06 00:28:29 +0000 | [diff] [blame] | 11 | COBJS = generic.o timer.o reset.o |
John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 12 | |
| 13 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
Matthias Weisser | 60e925d | 2011-07-06 00:28:29 +0000 | [diff] [blame] | 14 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 15 | |
| 16 | all: $(obj).depend $(LIB) |
| 17 | |
| 18 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 19 | $(call cmd_link_o_target, $(OBJS)) |
John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 20 | |
John Rigby | 9c14603 | 2010-01-25 23:12:56 -0700 | [diff] [blame] | 21 | ######################################################################### |
| 22 | |
| 23 | # defines $(obj).depend target |
| 24 | include $(SRCTREE)/rules.mk |
| 25 | |
| 26 | sinclude $(obj).depend |
| 27 | |
| 28 | ######################################################################### |