stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Wolfgang Denk | 511d0c7 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 4 | # |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 5 | # (C) Copyright 2001 |
| 6 | # Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc. |
| 7 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 12 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 13 | $(shell mkdir -p $(obj)../../Marvell/common) |
| 14 | endif |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 15 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | LIB = $(obj)lib$(BOARD).o |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 17 | |
| 18 | SOBJS = misc.o |
| 19 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 20 | COBJS = $(BOARD).o serial.o ../../Marvell/common/memory.o pci.o \ |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 21 | mv_eth.o mpsc.o i2c.o \ |
Stefan Roese | 79830d5 | 2006-02-08 15:54:15 +0100 | [diff] [blame] | 22 | sdram_init.o ide.o |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 23 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 24 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 25 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 26 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 27 | |
| 28 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 29 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 30 | |
| 31 | ######################################################################### |
| 32 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 33 | # defines $(obj).depend target |
| 34 | include $(SRCTREE)/rules.mk |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 35 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 36 | sinclude $(obj).depend |
stroese | 771e05b | 2004-12-16 18:21:17 +0000 | [diff] [blame] | 37 | |
| 38 | ######################################################################### |