blob: 5345df8c9f2163d3c253027a38a4da9fc2504c1f [file] [log] [blame]
Stefan Roese49639682006-08-15 14:22:35 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese49639682006-08-15 14:22:35 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese49639682006-08-15 14:22:35 +020011
Stefan Roese2a4a9432006-11-27 14:12:17 +010012COBJS = $(BOARD).o fpga.o nand.o
Stefan Roese49639682006-08-15 14:22:35 +020013SOBJS = init.o
14
Stefan Roese0b294432006-09-18 10:48:03 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Stefan Roese49639682006-08-15 14:22:35 +020019$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Stefan Roese49639682006-08-15 14:22:35 +020021
Stefan Roese49639682006-08-15 14:22:35 +020022#########################################################################
23
Stefan Roese0b294432006-09-18 10:48:03 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
Stefan Roese49639682006-08-15 14:22:35 +020026
Stefan Roese0b294432006-09-18 10:48:03 +020027sinclude $(obj).depend
Stefan Roese49639682006-08-15 14:22:35 +020028
29#########################################################################