blob: 6f9f701c061817530527e132205df890911da551 [file] [log] [blame]
Peter Meerwald06399322010-09-20 14:08:57 -04001#
2# U-boot - Makefile
3#
4# Copyright (c) 2005-2008 Analog Device Inc.
5#
6# (C) Copyright 2000-2006
7# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Peter Meerwald06399322010-09-20 14:08:57 -040010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Peter Meerwald06399322010-09-20 14:08:57 -040015
16COBJS-y := $(BOARD).o gpio_cfi_flash.o cled.o
17COBJS-$(CONFIG_BFIN_MAC) += smsc9303.o
18
19SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS-y))
21SOBJS := $(addprefix $(obj),$(SOBJS-y))
22
23$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Peter Meerwald06399322010-09-20 14:08:57 -040025
Peter Meerwald06399322010-09-20 14:08:57 -040026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend