2008-01-14 23:46:19 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2004
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-01-14 23:46:19 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
# CFLAGS += -DET_DEBUG
|
|
|
|
|
2011-10-14 04:38:02 +00:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
2008-01-14 23:46:19 +00:00
|
|
|
|
|
|
|
START = start.o
|
2009-06-30 14:18:29 +00:00
|
|
|
COBJS = cpu.o speed.o cpu_init.o interrupts.o
|
2008-01-14 23:46:19 +00:00
|
|
|
|
|
|
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
|
|
|
START := $(addprefix $(obj),$(START))
|
|
|
|
|
|
|
|
all: $(obj).depend $(START) $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2008-01-14 23:46:19 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|