blob: 4dbd6ed3142f31a679ea6c6d8140ac3e52d5e078 [file] [log] [blame]
Stefan Roeseb79316f2005-08-15 12:31:23 +02001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Stefan Roeseb79316f2005-08-15 12:31:23 +02005# (C) Copyright 2005
6# Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Stefan Roeseb79316f2005-08-15 12:31:23 +02009#
10
11include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +020012ifneq ($(OBJTREE),$(SRCTREE))
13$(shell mkdir -p $(obj)../common)
14endif
Stefan Roeseb79316f2005-08-15 12:31:23 +020015
16# TBS: add for debugging purposes
17BUILDUSER := $(shell whoami)
18FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
19
20CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
21# TBS: end debugging
22
23
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024LIB = $(obj)lib$(BOARD).o
Stefan Roeseb79316f2005-08-15 12:31:23 +020025
Marian Balakowiczf9328632006-09-01 19:49:50 +020026COBJS = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
Stefan Roeseb79316f2005-08-15 12:31:23 +020027 ../common/sb_common.o
28SOBJS = init.o
29
Marian Balakowiczf9328632006-09-01 19:49:50 +020030SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
31OBJS := $(addprefix $(obj),$(COBJS))
32SOBJS := $(addprefix $(obj),$(SOBJS))
Stefan Roeseb79316f2005-08-15 12:31:23 +020033
34$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010035 $(call cmd_link_o_target, $(OBJS))
Stefan Roeseb79316f2005-08-15 12:31:23 +020036
Stefan Roeseb79316f2005-08-15 12:31:23 +020037#########################################################################
38
Marian Balakowiczf9328632006-09-01 19:49:50 +020039# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
Stefan Roeseb79316f2005-08-15 12:31:23 +020041
Marian Balakowiczf9328632006-09-01 19:49:50 +020042sinclude $(obj).depend
Stefan Roeseb79316f2005-08-15 12:31:23 +020043
44#########################################################################