Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 11 | $(shell mkdir -p $(obj)board/$(VENDOR)/common) |
| 12 | endif |
| 13 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(VENDOR).o |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 15 | |
Peter Tyser | 7537982 | 2009-05-22 10:26:35 -0500 | [diff] [blame] | 16 | COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_8xxx_pci.o |
Peter Tyser | 281e41d | 2009-05-22 10:26:37 -0500 | [diff] [blame] | 17 | COBJS-$(CONFIG_MPC8572) += fsl_8xxx_clk.o |
| 18 | COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_clk.o |
John Schmoller | 9a0709d | 2010-10-22 00:20:34 -0500 | [diff] [blame] | 19 | COBJS-$(CONFIG_P2020) += fsl_8xxx_clk.o |
John Schmoller | d9c2dd5 | 2010-10-22 00:20:24 -0500 | [diff] [blame] | 20 | COBJS-$(CONFIG_MPC85xx) += fsl_8xxx_misc.o board.o |
| 21 | COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_misc.o board.o |
Peter Tyser | 59b5fdf | 2008-12-01 13:47:13 -0600 | [diff] [blame] | 22 | COBJS-$(CONFIG_NAND_ACTL) += actl_nand.o |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 23 | |
| 24 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 25 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 26 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 27 | |
| 28 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 29 | $(call cmd_link_o_target, $(OBJS)) |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 30 | |
Peter Tyser | 1c2b329 | 2008-12-17 16:36:23 -0600 | [diff] [blame] | 31 | ######################################################################### |
| 32 | |
| 33 | # defines $(obj).depend target |
| 34 | include $(SRCTREE)/rules.mk |
| 35 | |
| 36 | sinclude $(obj).depend |
| 37 | |
| 38 | ######################################################################### |