blob: c6abc77cee7608389279226cdf31dbbe7df7f042 [file] [log] [blame]
Heiko Schocherf5e0d032006-06-19 11:02:41 +02001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Heiko Schocherf5e0d032006-06-19 11:02:41 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocherf5e0d032006-06-19 11:02:41 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Heiko Schocherf5e0d032006-06-19 11:02:41 +020011
Heiko Schocherf5e0d032006-06-19 11:02:41 +020012SOBJS := init.o
13
Marian Balakowiczf9328632006-09-01 19:49:50 +020014COBJS := ppmc7xx.o pci.o flash.o
15
16SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Heiko Schocherf5e0d032006-06-19 11:02:41 +020022
Heiko Schocherf5e0d032006-06-19 11:02:41 +020023#########################################################################
24
Marian Balakowiczf9328632006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
Heiko Schocherf5e0d032006-06-19 11:02:41 +020027
Marian Balakowiczf9328632006-09-01 19:49:50 +020028sinclude $(obj).depend
Heiko Schocherf5e0d032006-06-19 11:02:41 +020029
30#########################################################################