blob: 4eab5a789ed06c89fc5f74b48cad85b451d07b8a [file] [log] [blame]
Wolfgang Denk6ccec442006-10-24 14:42:37 +02001#
2# (C) Copyright 2001-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2005-2006 Atmel Corporation
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk6ccec442006-10-24 14:42:37 +02008
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB := $(obj)lib$(BOARD).o
Wolfgang Denk6ccec442006-10-24 14:42:37 +020012
Haavard Skinnemoend9285252008-08-15 15:02:29 +020013COBJS-y += $(BOARD).o
Wolfgang Denk6ccec442006-10-24 14:42:37 +020014
Haavard Skinnemoend9285252008-08-15 15:02:29 +020015SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
16OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Wolfgang Denk6ccec442006-10-24 14:42:37 +020017
18$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk6ccec442006-10-24 14:42:37 +020020
21#########################################################################
22
23# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################