xref: /openbmc/u-boot/board/socrates/Makefile (revision 3765b3e7)
1#
2# (C) Copyright 2008
3# Sergei Poselenov,  Emcraft Systems, sposelenov@emcraft.com.
4# (C) Copyright 2001-2006
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
7# SPDX-License-Identifier:	GPL-2.0+
8#
9
10include $(TOPDIR)/config.mk
11
12LIB	= $(obj)lib$(BOARD).o
13#
14
15COBJS-y	+= $(BOARD).o
16COBJS-y	+= law.o
17COBJS-y	+= tlb.o
18COBJS-y	+= nand.o
19COBJS-y	+= sdram.o
20COBJS-$(CONFIG_FSL_DDR2) += ddr.o
21
22SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
23OBJS	:= $(addprefix $(obj),$(COBJS-y))
24SOBJS	:= $(addprefix $(obj),$(SOBJS))
25
26$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
27	$(call cmd_link_o_target, $(OBJS))
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################
37