blob: b5cd5f734c344c8b68c5ee8af4decc46dbce7d88 [file] [log] [blame]
Rafal Jaworowski8993e542007-07-27 14:43:59 +02001#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowski8993e542007-07-27 14:43:59 +02006#
7
8include $(TOPDIR)/config.mk
9
York Sun44166032008-05-12 14:36:39 -050010$(shell mkdir -p $(OBJTREE)/board/freescale/common)
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Rafal Jaworowski8993e542007-07-27 14:43:59 +020013
Kenneth Johansson66894842008-07-15 12:13:38 +020014COBJS-y := $(BOARD).o
Rafal Jaworowski8993e542007-07-27 14:43:59 +020015
John Rigby5f91db72008-02-26 09:38:14 -070016COBJS := $(COBJS-y)
Rafal Jaworowski8993e542007-07-27 14:43:59 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Rafal Jaworowski8993e542007-07-27 14:43:59 +020023
Rafal Jaworowski8993e542007-07-27 14:43:59 +020024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################