]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/mips/lib/Makefile
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / mips / lib / Makefile
1 #
2 # (C) Copyright 2003-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)lib$(ARCH).o
11
12 ## Build a couple of necessary functions into a private libgcc
13 LIBGCC  = $(obj)libgcc.o
14 GLSOBJS += ashldi3.o
15 GLSOBJS += ashrdi3.o
16 GLSOBJS += lshrdi3.o
17 LGOBJS  := $(addprefix $(obj),$(GLSOBJS))
18
19 SOBJS-y +=
20
21 COBJS-y += board.o
22 COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
23
24 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
25 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
26
27 # Always build libmips.o
28 TARGETS := $(LIB)
29
30 # Build private libgcc only when asked for
31 ifdef USE_PRIVATE_LIBGCC
32 TARGETS += $(LIBGCC)
33 endif
34
35 all:    $(TARGETS)
36
37 $(LIB): $(obj).depend $(OBJS)
38         $(call cmd_link_o_target, $(OBJS))
39
40 $(LIBGCC): $(obj).depend $(LGOBJS)
41         $(call cmd_link_o_target, $(LGOBJS))
42
43 #########################################################################
44
45 # defines $(obj).depend target
46 include $(SRCTREE)/rules.mk
47
48 sinclude $(obj).depend
49
50 #########################################################################