blob: 0d40d3ab5f93c1acf4a18281f591997199ed1e24 [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üller21be3092011-12-22 13:38:20 +010015COBJS = $(BOARD).o cmd_pip405.o \
16 ../common/pci.o \
17 ../common/isa.o \
18 ../common/kbd.o \
19 ../common/usb_uhci.o \
20 ../common/common_util.o
wdenkc6097192002-11-03 00:24:07 +000021
22SOBJS = init.o
23
Marian Balakowiczf9328632006-09-01 19:49:50 +020024SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
25OBJS := $(addprefix $(obj),$(COBJS))
26SOBJS := $(addprefix $(obj),$(SOBJS))
27
wdenkc6097192002-11-03 00:24:07 +000028$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010029 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenkc6097192002-11-03 00:24:07 +000030
wdenkc6097192002-11-03 00:24:07 +000031#########################################################################
32
Marian Balakowiczf9328632006-09-01 19:49:50 +020033# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
wdenkc6097192002-11-03 00:24:07 +000035
Marian Balakowiczf9328632006-09-01 19:49:50 +020036sinclude $(obj).depend
wdenkc6097192002-11-03 00:24:07 +000037
38#########################################################################