blob: d2bc49ab5686ae0d049f558bc7b14e4f72b8d41d [file] [log] [blame]
Wolfgang Denk97caf672006-03-12 02:12:27 +01001#
2# U-boot - Makefile
3#
Mike Frysinger93fd13a2008-04-18 20:44:11 -04004# Copyright (c) 2005-2008 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
Mike Frysinger3ce09502009-11-30 13:08:39 -050017COBJS-$(CONFIG_STAMP_CF) += ide-cf.o
Mike Frysinger93fd13a2008-04-18 20:44:11 -040018COBJS-$(CONFIG_VIDEO) += video.o
Wolfgang Denk97caf672006-03-12 02:12:27 +010019
Mike Frysinger2ce1e822008-10-12 22:09:26 -040020SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Mike Frysinger93fd13a2008-04-18 20:44:11 -040021OBJS := $(addprefix $(obj),$(COBJS-y))
Mike Frysinger2ce1e822008-10-12 22:09:26 -040022SOBJS := $(addprefix $(obj),$(SOBJS-y))
Aubrey Li5ff05882007-03-12 01:42:06 +080023
Mike Frysinger37f48702009-06-14 06:29:07 -040024$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026
Wolfgang Denk97caf672006-03-12 02:12:27 +010027#########################################################################
28
Aubrey Li5ff05882007-03-12 01:42:06 +080029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
Wolfgang Denk97caf672006-03-12 02:12:27 +010031
Aubrey Li5ff05882007-03-12 01:42:06 +080032sinclude $(obj).depend
Wolfgang Denk97caf672006-03-12 02:12:27 +010033
34#########################################################################