blob: b25ebbf1cbda16e953ab6677376b39f868d6fd27 [file] [log] [blame]
wdenkb6a64602002-08-27 17:36:41 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenkb6a64602002-08-27 17:36:41 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkb6a64602002-08-27 17:36:41 +00006#
7
8include $(TOPDIR)/config.mk
9
Yuri Tikhonovbdfd3022008-03-31 10:51:37 +020010COBJS := $(COBJS-y)
11AOBJS := $(AOBJS-y)
Wolfgang Denka1be4762008-05-20 16:00:29 +020012SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
14LIB := $(obj)$(LIB)
wdenkb6a64602002-08-27 17:36:41 +000015
16CPPFLAGS += -I$(TOPDIR)
17
18all: $(LIB)
19
Marian Balakowiczd62379d2006-09-01 19:49:50 +020020$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
wdenkb6a64602002-08-27 17:36:41 +000022
23#########################################################################
24
Marian Balakowiczd62379d2006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
wdenkb6a64602002-08-27 17:36:41 +000027
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028sinclude $(obj).depend
wdenkb6a64602002-08-27 17:36:41 +000029
30#########################################################################