blob: 0d40d3ab5f93c1acf4a18281f591997199ed1e24 [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001#
Marian Balakowiczd62379d2006-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 Denkd79de1d2013-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 Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenkc6097192002-11-03 00:24:07 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkc6097192002-11-03 00:24:07 +000014
David Müller2e165b52011-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 Balakowiczd62379d2006-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 Carliera8d426f2010-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 Balakowiczd62379d2006-09-01 19:49:50 +020033# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
wdenkc6097192002-11-03 00:24:07 +000035
Marian Balakowiczd62379d2006-09-01 19:49:50 +020036sinclude $(obj).depend
wdenkc6097192002-11-03 00:24:07 +000037
38#########################################################################