blob: 51179c08df96a7e6fbe0a40587645f5e0e7102a5 [file] [log] [blame]
wdenke69b4b82002-09-17 21:26:59 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenke69b4b82002-09-17 21:26:59 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenke69b4b82002-09-17 21:26:59 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenke69b4b82002-09-17 21:26:59 +000011
Marian Balakowiczd62379d2006-09-01 19:49:50 +020012COBJS = $(BOARD).o flash.o pci.o misc.o mpc107_i2c.o eepro100_srom.o
wdenke69b4b82002-09-17 21:26:59 +000013
14SOBJS = asm_init.o
15
Marian Balakowiczd62379d2006-09-01 19:49:50 +020016SRCS := $(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))
wdenke69b4b82002-09-17 21:26:59 +000022
wdenke69b4b82002-09-17 21:26:59 +000023#########################################################################
24
Marian Balakowiczd62379d2006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
wdenke69b4b82002-09-17 21:26:59 +000027
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028sinclude $(obj).depend
wdenke69b4b82002-09-17 21:26:59 +000029
30#########################################################################