blob: 9f01c567863f244beba15861cf495ce3e6d3b9db [file] [log] [blame]
wdenk3cae4c92002-07-07 16:05:51 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk3cae4c92002-07-07 16:05:51 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk3cae4c92002-07-07 16:05:51 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenk3cae4c92002-07-07 16:05:51 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenk3cae4c92002-07-07 16:05:51 +000014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015COBJS = $(BOARD).o flash.o ../common/misc.o cmd_pci405.o
stroesec2642d12004-12-16 18:38:22 +000016SOBJS = writeibm.o
wdenk3cae4c92002-07-07 16:05:51 +000017
Marian Balakowiczf9328632006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
wdenk3cae4c92002-07-07 16:05:51 +000022$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023# $(call cmd_link_o_target, $(OBJS))
24 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenk3cae4c92002-07-07 16:05:51 +000025
wdenk3cae4c92002-07-07 16:05:51 +000026#########################################################################
27
Marian Balakowiczf9328632006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
wdenk3cae4c92002-07-07 16:05:51 +000030
Marian Balakowiczf9328632006-09-01 19:49:50 +020031sinclude $(obj).depend
wdenk3cae4c92002-07-07 16:05:51 +000032
33#########################################################################