Makefile (326ea986ac150acdc7656d57fca647db80b50158) Makefile (3954b739b32de7c634b21496c229d30a085a19e2)
1#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2002
6# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
7#
8# SPDX-License-Identifier: GPL-2.0+
9#
10
1#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2002
6# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
7#
8# SPDX-License-Identifier: GPL-2.0+
9#
10
11include $(TOPDIR)/config.mk
12
13LIB = $(obj)lib$(CPU).o
14
15START-y = start.o
16START-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
17COBJS = interrupts.o cpu.o
18
19SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
21START := $(addprefix $(obj),$(START-y))
22
23all: $(obj).depend $(START) $(LIB)
24
25$(LIB): $(OBJS)
26 $(call cmd_link_o_target, $(OBJS))
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################
11extra-y = start.o
12extra-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
13obj-y = interrupts.o cpu.o