blob: 5603eb93e5a0eff3b10a2ec4f935436a8ab204f3 [file] [log] [blame]
Wolfgang Denk6cb142f2006-03-12 02:12:27 +01001#
2# U-boot Makefile
3#
Mike Frysingerd5bffeb2008-02-19 00:54:20 -05004# Copyright (c) 2005-2008 Analog Devices Inc.
Wolfgang Denk6cb142f2006-03-12 02:12:27 +01005#
Wolfgang Denk44ba4642007-03-22 00:13:12 +01006# (C) Copyright 2000-2006
Wolfgang Denk6cb142f2006-03-12 02:12:27 +01007# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010010#
11
12include $(TOPDIR)/config.mk
13
Mike Frysingerd5bffeb2008-02-19 00:54:20 -050014CFLAGS += -DBFIN_BOARD_NAME='"$(BOARD)"'
15
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010016LIB = $(obj)lib$(ARCH).o
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010017
Mike Frysingera52ad4f2009-11-30 13:51:24 -050018SOBJS-y += ins.o
Marian Balakowicz823afe72008-02-27 11:00:47 +010019SOBJS-y += memcmp.o
20SOBJS-y += memcpy.o
21SOBJS-y += memmove.o
22SOBJS-y += memset.o
Mike Frysingera52ad4f2009-11-30 13:51:24 -050023SOBJS-y += outs.o
Robin Getzf19fd872009-12-21 16:35:48 -050024SOBJS-$(CONFIG_CMD_KGDB) += __kgdb.o
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010025
Marian Balakowicz823afe72008-02-27 11:00:47 +010026COBJS-y += board.o
Mike Frysinger81b799a2008-08-07 15:27:52 -040027COBJS-y += boot.o
Marian Balakowicz823afe72008-02-27 11:00:47 +010028COBJS-y += cache.o
Mike Frysinger40599232008-10-24 22:48:47 -040029COBJS-y += clocks.o
Mike Frysinger286070d2008-10-06 03:31:52 -040030COBJS-$(CONFIG_CMD_CACHE_DUMP) += cmd_cache_dump.o
Robin Getzf19fd872009-12-21 16:35:48 -050031COBJS-$(CONFIG_CMD_KGDB) += kgdb.o
Marian Balakowicz823afe72008-02-27 11:00:47 +010032COBJS-y += muldi3.o
Mike Frysinger21513742011-05-10 16:22:25 -040033COBJS-$(CONFIG_HAS_POST) += post.o
Mike Frysinger9171fc82008-03-30 15:46:13 -040034COBJS-y += string.o
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010035
Wolfgang Denk53677ef2008-05-20 16:00:29 +020036SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Marian Balakowicz823afe72008-02-27 11:00:47 +010037OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Aubrey Libfa57542007-03-12 01:42:06 +080038
Mike Frysinger2ed08692009-08-22 19:50:22 -040039$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010040 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010041
42#########################################################################
43
Aubrey Libfa57542007-03-12 01:42:06 +080044# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010046
Aubrey Libfa57542007-03-12 01:42:06 +080047sinclude $(obj).depend
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010048
49#########################################################################