]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/x86/lib/Makefile
Merge branch 'next' of git://git.denx.de/u-boot-mpc83xx
[karo-tx-uboot.git] / arch / x86 / lib / Makefile
1 #
2 # (C) Copyright 2002-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 COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
13 COBJS-y += cmd_boot.o
14 COBJS-y += gcc.o
15 COBJS-y += init_helpers.o
16 COBJS-y += interrupts.o
17 COBJS-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o
18 COBJS-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o
19 COBJS-$(CONFIG_PCI) += pci_type1.o
20 COBJS-y += relocate.o
21 COBJS-y += physmem.o
22 COBJS-y += string.o
23 COBJS-$(CONFIG_SYS_X86_TSC_TIMER)       += tsc_timer.o
24 COBJS-$(CONFIG_VIDEO_VGA)       += video.o
25 COBJS-$(CONFIG_CMD_ZBOOT)       += zimage.o
26
27 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
28 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
29
30 $(LIB): $(obj).depend $(OBJS)
31         $(call cmd_link_o_target, $(OBJS))
32
33 $(PREFIXED_LIBGCC): $(NORMAL_LIBGCC)
34         $(OBJCOPY) $< $@ --prefix-symbols=__normal_
35
36 $(LIB): $(PREFIXED_LIBGCC)
37
38 #########################################################################
39
40 # defines $(obj).depend target
41 include $(SRCTREE)/rules.mk
42
43 sinclude $(obj).depend
44
45 #########################################################################