blob: 63a48b27c74c2c82f0b34e8bc30b8deca8423901 [file] [log] [blame]
Wolfgang Denk97caf672006-03-12 02:12:27 +01001#
2# U-boot - Makefile
3#
Aubrey Li314d22f2007-04-05 18:31:18 +08004# Copyright (c) 2005-2007 Analog Device Inc.
Wolfgang Denk97caf672006-03-12 02:12:27 +01005#
Aubrey Lif83a65c2007-03-10 23:49:29 +08006# (C) Copyright 2000-2006
Wolfgang Denk97caf672006-03-12 02:12:27 +01007# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk97caf672006-03-12 02:12:27 +010010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Wolfgang Denk97caf672006-03-12 02:12:27 +010015
Mike Frysinger2ce1e822008-10-12 22:09:26 -040016COBJS-y := $(BOARD).o flash.o
Wolfgang Denk97caf672006-03-12 02:12:27 +010017
Mike Frysinger2ce1e822008-10-12 22:09:26 -040018SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS-y))
Aubrey Li5ff05882007-03-12 01:42:06 +080021
Mike Frysinger37f48702009-06-14 06:29:07 -040022$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024
Wolfgang Denk97caf672006-03-12 02:12:27 +010025#########################################################################
26
Aubrey Li5ff05882007-03-12 01:42:06 +080027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Wolfgang Denk97caf672006-03-12 02:12:27 +010029
Aubrey Li5ff05882007-03-12 01:42:06 +080030sinclude $(obj).depend
Wolfgang Denk97caf672006-03-12 02:12:27 +010031
32#########################################################################