blob: 87e6c65c7bfeb7116e21fc93ce791db8dfda3ca1 [file] [log] [blame]
Wolfgang Denk74f43042005-09-25 01:48:28 +02001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Wolfgang Denk74f43042005-09-25 01:48:28 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk74f43042005-09-25 01:48:28 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
Wolfgang Denk74f43042005-09-25 01:48:28 +020011
12START = start.o
Jean-Christophe PLAGNIOL-VILLARDc20e28f2009-05-15 23:45:12 +020013
14COBJS = cpu.o
Wolfgang Denk74f43042005-09-25 01:48:28 +020015
Marian Balakowiczf9328632006-09-01 19:49:50 +020016SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
18START := $(addprefix $(obj),$(START))
19
20all: $(obj).depend $(START) $(LIB)
Wolfgang Denk74f43042005-09-25 01:48:28 +020021
22$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk74f43042005-09-25 01:48:28 +020024
25#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Wolfgang Denk74f43042005-09-25 01:48:28 +020029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
Wolfgang Denk74f43042005-09-25 01:48:28 +020031
32#########################################################################