blob: 63a48b27c74c2c82f0b34e8bc30b8deca8423901 [file] [log] [blame]
Wolfgang Denk6cb142f2006-03-12 02:12:27 +01001#
2# U-boot - Makefile
3#
Aubrey Li155fd762007-04-05 18:31:18 +08004# Copyright (c) 2005-2007 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 flash.o
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010017
Mike Frysinger1f4a3bb2008-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 Libfa57542007-03-12 01:42:06 +080021
Mike Frysinger9ff67e52009-06-14 06:29:07 -040022$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Marian Balakowiczf9328632006-09-01 19:49:50 +020024
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010025#########################################################################
26
Aubrey Libfa57542007-03-12 01:42:06 +080027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010029
Aubrey Libfa57542007-03-12 01:42:06 +080030sinclude $(obj).depend
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010031
32#########################################################################