Makefile 702 Bytes
Newer Older
1 2 3 4
#
# (C) Copyright 2008
# Stefan Roese, DENX Software Engineering, sr@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
COBJS-y	:= $(BOARD).o
COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
14 15
SOBJS	:= init.o

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

21 22 23 24
all:	$(LIB) $(SOBJS)

$(LIB):	$(OBJS)
	$(call cmd_link_o_target, $^)
25 26 27 28 29 30 31 32 33

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

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

sinclude $(obj).depend

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