Makefile 686 Bytes
Newer Older
1 2 3 4
#
# (C) Copyright 2007
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
5
# SPDX-License-Identifier:	GPL-2.0+
6 7 8 9
#

include $(TOPDIR)/config.mk

10 11
$(shell mkdir -p $(OBJTREE)/board/freescale/common)

12
LIB	= $(obj)lib$(BOARD).o
13

14
COBJS-y	:= $(BOARD).o
15

16
COBJS	:= $(COBJS-y)
17 18 19 20 21
SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS	:= $(addprefix $(obj),$(COBJS))
SOBJS	:= $(addprefix $(obj),$(SOBJS))

$(LIB):	$(obj).depend $(OBJS)
22
	$(call cmd_link_o_target, $(OBJS))
23 24 25 26 27 28 29 30 31

#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################