Makefile 665 Bytes
Newer Older
wdenk's avatar
wdenk committed
1
#
2
# (C) Copyright 2003-2006
wdenk's avatar
wdenk committed
3 4
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
5
# SPDX-License-Identifier:	GPL-2.0+
wdenk's avatar
wdenk committed
6 7 8 9
#

include $(TOPDIR)/config.mk

10
LIB	= $(obj)lib$(BOARD).o
wdenk's avatar
wdenk committed
11

12
COBJS	= $(BOARD).o flash.o
wdenk's avatar
wdenk committed
13
SOBJS	= lowlevel_init.o
wdenk's avatar
wdenk committed
14

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

$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
20
	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenk's avatar
wdenk committed
21 22 23

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

24 25
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
wdenk's avatar
wdenk committed
26

27
sinclude $(obj).depend
wdenk's avatar
wdenk committed
28 29

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