blob: 9cceb47806160aec2abc17ff7721088d7d618b11 [file] [log] [blame]
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02005# (C) Copyright 2005
6# Sandburst Corporation
7# Travis B. Sawyer
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020010#
11
12include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013ifneq ($(OBJTREE),$(SRCTREE))
14$(shell mkdir -p $(obj)../common)
15endif
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020016
17# TBS: add for debugging purposes
18BUILDUSER := $(shell whoami)
19FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
20
21CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
22# TBS: end debugging
23
24
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025LIB = $(obj)lib$(BOARD).o
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020026
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027COBJS = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020028 ../common/sb_common.o
29
30SOBJS = init.o
31
Marian Balakowiczd62379d2006-09-01 19:49:50 +020032SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
33OBJS := $(addprefix $(obj),$(COBJS))
34SOBJS := $(addprefix $(obj),$(SOBJS))
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020035
36$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010037 $(call cmd_link_o_target, $(OBJS))
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020038
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020039#########################################################################
40
Marian Balakowiczd62379d2006-09-01 19:49:50 +020041# defines $(obj).depend target
42include $(SRCTREE)/rules.mk
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020043
Marian Balakowiczd62379d2006-09-01 19:49:50 +020044sinclude $(obj).depend
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020045
46#########################################################################