]>
Commit | Line | Data |
---|---|---|
b79316f2 | 1 | # |
f9328639 MB |
2 | # (C) Copyright 2006 |
3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | # | |
b79316f2 SR |
5 | # (C) Copyright 2005 |
6 | # Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com | |
7 | # | |
1a459660 | 8 | # SPDX-License-Identifier: GPL-2.0+ |
b79316f2 SR |
9 | # |
10 | ||
11 | include $(TOPDIR)/config.mk | |
f9328639 MB |
12 | ifneq ($(OBJTREE),$(SRCTREE)) |
13 | $(shell mkdir -p $(obj)../common) | |
14 | endif | |
b79316f2 SR |
15 | |
16 | # TBS: add for debugging purposes | |
17 | BUILDUSER := $(shell whoami) | |
18 | FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o) | |
19 | ||
20 | CFLAGS += -DBUILDUSER='"$(BUILDUSER)"' | |
21 | # TBS: end debugging | |
22 | ||
23 | ||
6d8962e8 | 24 | LIB = $(obj)lib$(BOARD).o |
b79316f2 | 25 | |
f9328639 | 26 | COBJS = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \ |
b79316f2 SR |
27 | ../common/sb_common.o |
28 | SOBJS = init.o | |
29 | ||
f9328639 MB |
30 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
31 | OBJS := $(addprefix $(obj),$(COBJS)) | |
32 | SOBJS := $(addprefix $(obj),$(SOBJS)) | |
b79316f2 SR |
33 | |
34 | $(LIB): $(OBJS) $(SOBJS) | |
6d8962e8 | 35 | $(call cmd_link_o_target, $(OBJS)) |
b79316f2 | 36 | |
b79316f2 SR |
37 | ######################################################################### |
38 | ||
f9328639 MB |
39 | # defines $(obj).depend target |
40 | include $(SRCTREE)/rules.mk | |
b79316f2 | 41 | |
f9328639 | 42 | sinclude $(obj).depend |
b79316f2 SR |
43 | |
44 | ######################################################################### |