Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
Matthias Fuchs | cfab2ae | 2009-09-04 10:37:04 +0200 | [diff] [blame] | 9 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 10 | $(shell mkdir -p $(obj)../common) |
| 11 | endif |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 12 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(BOARD).o |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 14 | |
| 15 | COBJS-y = $(BOARD).o |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 16 | COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o |
Matthias Fuchs | cfab2ae | 2009-09-04 10:37:04 +0200 | [diff] [blame] | 17 | COBJS-y += ../common/cmd_loadpci.o |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 18 | |
| 19 | COBJS := $(COBJS-y) |
| 20 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 26 | |
Matthias Fuchs | 99d8b23 | 2009-07-22 13:56:21 +0200 | [diff] [blame] | 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |