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

include $(TOPDIR)/config.mk

10
LIB	= $(obj)lib$(BOARD).o
11 12 13 14 15 16 17 18

COBJS	= $(BOARD).o

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))
20 21 22 23 24 25 26 27 28

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

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

sinclude $(obj).depend

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