blob: 4eb997f164c3f5ce75a7c120554b1fc69ddbacb5 [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkc6097192002-11-03 00:24:07 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkc6097192002-11-03 00:24:07 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenkc6097192002-11-03 00:24:07 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkc6097192002-11-03 00:24:07 +000014
David Müller39441b32011-12-22 13:38:21 +010015COBJS = $(BOARD).o cmd_mip405.o \
16 ../common/pci.o \
17 ../common/usb_uhci.o \
18 ../common/common_util.o
wdenkc6097192002-11-03 00:24:07 +000019
20SOBJS = init.o
21
Marian Balakowiczf9328632006-09-01 19:49:50 +020022SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
24SOBJS := $(addprefix $(obj),$(SOBJS))
25
wdenkc6097192002-11-03 00:24:07 +000026$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenkc6097192002-11-03 00:24:07 +000028
wdenkc6097192002-11-03 00:24:07 +000029#########################################################################
30
Marian Balakowiczf9328632006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
wdenkc6097192002-11-03 00:24:07 +000033
Marian Balakowiczf9328632006-09-01 19:49:50 +020034sinclude $(obj).depend
wdenkc6097192002-11-03 00:24:07 +000035
36#########################################################################