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