blob: 4b15bb66379616eee02fa25363d5537174dad75e [file] [log] [blame]
wdenkc1896002003-12-28 11:44:59 +00001
2#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2003-2006
wdenkc1896002003-12-28 11:44:59 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
wdenkc1896002003-12-28 11:44:59 +00007#
8
9include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +020010ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)../common)
12endif
wdenkc1896002003-12-28 11:44:59 +000013
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
wdenkc1896002003-12-28 11:44:59 +000015
Marian Balakowiczf9328632006-09-01 19:49:50 +020016COBJS := $(BOARD).o ../common/flash.o ../common/vpd.o ../common/am79c874.o
wdenkc1896002003-12-28 11:44:59 +000017
Marian Balakowiczf9328632006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenkc1896002003-12-28 11:44:59 +000024
wdenkc1896002003-12-28 11:44:59 +000025#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenkc1896002003-12-28 11:44:59 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenkc1896002003-12-28 11:44:59 +000031
32#########################################################################