blob: c6abc77cee7608389279226cdf31dbbe7df7f042 [file] [log] [blame]
Heiko Schocherd7f77fb2006-06-19 11:02:41 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Heiko Schocherd7f77fb2006-06-19 11:02:41 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocherd7f77fb2006-06-19 11:02:41 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Heiko Schocherd7f77fb2006-06-19 11:02:41 +020011
Heiko Schocherd7f77fb2006-06-19 11:02:41 +020012SOBJS := init.o
13
Marian Balakowiczd62379d2006-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 Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Heiko Schocherd7f77fb2006-06-19 11:02:41 +020022
Heiko Schocherd7f77fb2006-06-19 11:02:41 +020023#########################################################################
24
Marian Balakowiczd62379d2006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
Heiko Schocherd7f77fb2006-06-19 11:02:41 +020027
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028sinclude $(obj).depend
Heiko Schocherd7f77fb2006-06-19 11:02:41 +020029
30#########################################################################