blob: b25ebbf1cbda16e953ab6677376b39f868d6fd27 [file] [log] [blame]
wdenkb6a64602002-08-27 17:36:41 +00001#
Marian Balakowiczf9328632006-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 Denk1a459662013-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 Tikhonov2d2b9942008-03-31 10:51:37 +020010COBJS := $(COBJS-y)
11AOBJS := $(AOBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020012SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
Marian Balakowiczf9328632006-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 Balakowiczf9328632006-09-01 19:49:50 +020020$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
wdenkb6a64602002-08-27 17:36:41 +000022
23#########################################################################
24
Marian Balakowiczf9328632006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
wdenkb6a64602002-08-27 17:36:41 +000027
Marian Balakowiczf9328632006-09-01 19:49:50 +020028sinclude $(obj).depend
wdenkb6a64602002-08-27 17:36:41 +000029
30#########################################################################