blob: f389767fb92cf8906b501adbe80221afa9dd075a [file] [log] [blame]
wdenk2262cfe2002-11-18 00:14:45 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenk2262cfe2002-11-18 00:14:45 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk2262cfe2002-11-18 00:14:45 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(ARCH).o
wdenk2262cfe2002-11-18 00:14:45 +000011
Dirk Eibachb8eee432013-06-26 15:55:16 +020012COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Graeme Russd13640b2011-12-23 10:16:11 +110013COBJS-y += cmd_boot.o
Gabe Black36b24092011-11-16 23:01:37 +000014COBJS-y += gcc.o
Graeme Russd47ab0e2011-12-23 16:51:29 +110015COBJS-y += init_helpers.o
Graeme Russ4ee4e412009-11-24 20:04:15 +110016COBJS-y += interrupts.o
17COBJS-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o
Simon Glassd0b6f242013-04-17 16:13:39 +000018COBJS-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o
Graeme Russf50b6192009-08-23 12:59:57 +100019COBJS-$(CONFIG_PCI) += pci_type1.o
Graeme Russb156ff02011-12-23 15:57:58 +110020COBJS-y += relocate.o
Gabe Blackac31a7b2012-10-23 18:04:46 +000021COBJS-y += physmem.o
Gabe Blackdbaef6e2011-11-14 14:47:18 +000022COBJS-y += string.o
Simon Glasse761ecd2013-04-17 16:13:36 +000023COBJS-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o
Simon Glass058d59b2012-12-03 13:59:47 +000024COBJS-$(CONFIG_VIDEO_VGA) += video.o
Graeme Russa76fc702011-11-08 02:33:20 +000025COBJS-$(CONFIG_CMD_ZBOOT) += zimage.o
wdenk8bde7f72003-06-27 21:31:46 +000026
Wolfgang Denk53677ef2008-05-20 16:00:29 +020027SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Marian Balakowicz823afe72008-02-27 11:00:47 +010028OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
wdenk2262cfe2002-11-18 00:14:45 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010031 $(call cmd_link_o_target, $(OBJS))
wdenk2262cfe2002-11-18 00:14:45 +000032
Gabe Black36b24092011-11-16 23:01:37 +000033$(PREFIXED_LIBGCC): $(NORMAL_LIBGCC)
34 $(OBJCOPY) $< $@ --prefix-symbols=__normal_
35
36$(LIB): $(PREFIXED_LIBGCC)
37
wdenk2262cfe2002-11-18 00:14:45 +000038#########################################################################
39
Marian Balakowiczf9328632006-09-01 19:49:50 +020040# defines $(obj).depend target
41include $(SRCTREE)/rules.mk
wdenk2262cfe2002-11-18 00:14:45 +000042
Marian Balakowiczf9328632006-09-01 19:49:50 +020043sinclude $(obj).depend
wdenk2262cfe2002-11-18 00:14:45 +000044
45#########################################################################