Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 1 | # |
2 | # U-boot Makefile | ||||
3 | # | ||||
Mike Frysinger | d5bffeb | 2008-02-19 00:54:20 -0500 | [diff] [blame] | 4 | # Copyright (c) 2005-2008 Analog Devices Inc. |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 5 | # |
Wolfgang Denk | 44ba464 | 2007-03-22 00:13:12 +0100 | [diff] [blame] | 6 | # (C) Copyright 2000-2006 |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 7 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
8 | # | ||||
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 10 | # |
11 | |||||
12 | include $(TOPDIR)/config.mk | ||||
13 | |||||
Mike Frysinger | d5bffeb | 2008-02-19 00:54:20 -0500 | [diff] [blame] | 14 | CFLAGS += -DBFIN_BOARD_NAME='"$(BOARD)"' |
15 | |||||
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | LIB = $(obj)lib$(ARCH).o |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 17 | |
Mike Frysinger | a52ad4f | 2009-11-30 13:51:24 -0500 | [diff] [blame] | 18 | SOBJS-y += ins.o |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 19 | SOBJS-y += memcmp.o |
20 | SOBJS-y += memcpy.o | ||||
21 | SOBJS-y += memmove.o | ||||
22 | SOBJS-y += memset.o | ||||
Mike Frysinger | a52ad4f | 2009-11-30 13:51:24 -0500 | [diff] [blame] | 23 | SOBJS-y += outs.o |
Robin Getz | f19fd87 | 2009-12-21 16:35:48 -0500 | [diff] [blame] | 24 | SOBJS-$(CONFIG_CMD_KGDB) += __kgdb.o |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 25 | |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 26 | COBJS-y += board.o |
Mike Frysinger | 81b799a | 2008-08-07 15:27:52 -0400 | [diff] [blame] | 27 | COBJS-y += boot.o |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 28 | COBJS-y += cache.o |
Mike Frysinger | 4059923 | 2008-10-24 22:48:47 -0400 | [diff] [blame] | 29 | COBJS-y += clocks.o |
Mike Frysinger | 286070d | 2008-10-06 03:31:52 -0400 | [diff] [blame] | 30 | COBJS-$(CONFIG_CMD_CACHE_DUMP) += cmd_cache_dump.o |
Robin Getz | f19fd87 | 2009-12-21 16:35:48 -0500 | [diff] [blame] | 31 | COBJS-$(CONFIG_CMD_KGDB) += kgdb.o |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 32 | COBJS-y += muldi3.o |
Mike Frysinger | 2151374 | 2011-05-10 16:22:25 -0400 | [diff] [blame] | 33 | COBJS-$(CONFIG_HAS_POST) += post.o |
Mike Frysinger | 9171fc8 | 2008-03-30 15:46:13 -0400 | [diff] [blame] | 34 | COBJS-y += string.o |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 35 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 36 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 37 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
Aubrey Li | bfa5754 | 2007-03-12 01:42:06 +0800 | [diff] [blame] | 38 | |
Mike Frysinger | 2ed0869 | 2009-08-22 19:50:22 -0400 | [diff] [blame] | 39 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 40 | $(call cmd_link_o_target, $(OBJS)) |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 41 | |
42 | ######################################################################### | ||||
43 | |||||
Aubrey Li | bfa5754 | 2007-03-12 01:42:06 +0800 | [diff] [blame] | 44 | # defines $(obj).depend target |
45 | include $(SRCTREE)/rules.mk | ||||
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 46 | |
Aubrey Li | bfa5754 | 2007-03-12 01:42:06 +0800 | [diff] [blame] | 47 | sinclude $(obj).depend |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 48 | |
49 | ######################################################################### |