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

include $(TOPDIR)/config.mk

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

12
COBJS	= $(BOARD).o flash.o
stroese's avatar
stroese committed
13

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

$(LIB):	$(obj).depend $(OBJS)
19
	$(call cmd_link_o_target, $(OBJS))
stroese's avatar
stroese committed
20 21 22

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

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

26
sinclude $(obj).depend
stroese's avatar
stroese committed
27 28

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