blob: 75a09ff54ba8864b1aae8b0f374fad7a2bf096c1 [file] [log] [blame]
John Rigby9c146032010-01-25 23:12:56 -07001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
John Rigby9c146032010-01-25 23:12:56 -07006
7include $(TOPDIR)/config.mk
8
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = $(obj)lib$(SOC).o
John Rigby9c146032010-01-25 23:12:56 -070010
Matthias Weisser60e925d2011-07-06 00:28:29 +000011COBJS = generic.o timer.o reset.o
John Rigby9c146032010-01-25 23:12:56 -070012
13SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
Matthias Weisser60e925d2011-07-06 00:28:29 +000014OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
John Rigby9c146032010-01-25 23:12:56 -070015
16all: $(obj).depend $(LIB)
17
18$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
John Rigby9c146032010-01-25 23:12:56 -070020
John Rigby9c146032010-01-25 23:12:56 -070021#########################################################################
22
23# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################