wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2002-2006 |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | # | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 6 | # |
7 | |||||
8 | include $(TOPDIR)/config.mk | ||||
9 | |||||
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)lib$(ARCH).o |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 11 | |
Dirk Eibach | d2df811 | 2013-06-26 15:55:16 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_CMD_BOOTM) += bootm.o |
Graeme Russ | ac52e47 | 2011-12-23 10:16:11 +1100 | [diff] [blame] | 13 | COBJS-y += cmd_boot.o |
Gabe Black | 1662cf1 | 2011-11-16 23:01:37 +0000 | [diff] [blame] | 14 | COBJS-y += gcc.o |
Graeme Russ | a875dda | 2011-12-23 16:51:29 +1100 | [diff] [blame] | 15 | COBJS-y += init_helpers.o |
Graeme Russ | 4b804e1 | 2009-11-24 20:04:15 +1100 | [diff] [blame] | 16 | COBJS-y += interrupts.o |
17 | COBJS-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o | ||||
Simon Glass | 3e8b605 | 2013-04-17 16:13:39 +0000 | [diff] [blame] | 18 | COBJS-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o |
Graeme Russ | 296b5e2 | 2009-08-23 12:59:57 +1000 | [diff] [blame] | 19 | COBJS-$(CONFIG_PCI) += pci_type1.o |
Graeme Russ | 6ae6dd8 | 2011-12-23 15:57:58 +1100 | [diff] [blame] | 20 | COBJS-y += relocate.o |
Gabe Black | d64c6ad | 2012-10-23 18:04:46 +0000 | [diff] [blame] | 21 | COBJS-y += physmem.o |
Gabe Black | 0e49905 | 2011-11-14 14:47:18 +0000 | [diff] [blame] | 22 | COBJS-y += string.o |
Simon Glass | 11d7a5b | 2013-04-17 16:13:36 +0000 | [diff] [blame] | 23 | COBJS-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o |
Simon Glass | 54df8ce | 2012-12-03 13:59:47 +0000 | [diff] [blame] | 24 | COBJS-$(CONFIG_VIDEO_VGA) += video.o |
Graeme Russ | 19fc0d5 | 2011-11-08 02:33:20 +0000 | [diff] [blame] | 25 | COBJS-$(CONFIG_CMD_ZBOOT) += zimage.o |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 26 | |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 27 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
Marian Balakowicz | 699ffe5 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 28 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 29 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 31 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 32 | |
Gabe Black | 1662cf1 | 2011-11-16 23:01:37 +0000 | [diff] [blame] | 33 | $(PREFIXED_LIBGCC): $(NORMAL_LIBGCC) |
34 | $(OBJCOPY) $< $@ --prefix-symbols=__normal_ | ||||
35 | |||||
36 | $(LIB): $(PREFIXED_LIBGCC) | ||||
37 | |||||
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 38 | ######################################################################### |
39 | |||||
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 40 | # defines $(obj).depend target |
41 | include $(SRCTREE)/rules.mk | ||||
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 42 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 43 | sinclude $(obj).depend |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 44 | |
45 | ######################################################################### |