blob: c84186a67cdd7c519bd34d97dca4ae7ea58f132f [file] [log] [blame]
wdenk21b70532002-08-14 08:41:39 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk21b70532002-08-14 08:41:39 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk21b70532002-08-14 08:41:39 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenk21b70532002-08-14 08:41:39 +000011
12START = start.o
Jean-Christophe PLAGNIOL-VILLARDb54384e2009-05-15 23:47:02 +020013
Marek Vasutd10237d2011-11-26 07:32:24 +010014COBJS-$(CONFIG_CPU_PXA25X) = pxa2xx.o
15COBJS-$(CONFIG_CPU_PXA27X) = pxa2xx.o
16
Marek Vasute8de0fa2011-11-26 08:11:32 +010017COBJS-y += cpuinfo.o
18
Marek Vasutd10237d2011-11-26 07:32:24 +010019COBJS = $(COBJS-y)
Jean-Christophe PLAGNIOL-VILLARDb54384e2009-05-15 23:47:02 +020020COBJS += timer.o
21COBJS += usb.o
wdenk21b70532002-08-14 08:41:39 +000022
Marian Balakowiczf9328632006-09-01 19:49:50 +020023SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
24OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
25START := $(addprefix $(obj),$(START))
26
27all: $(obj).depend $(START) $(LIB)
wdenk21b70532002-08-14 08:41:39 +000028
29$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
wdenk21b70532002-08-14 08:41:39 +000031
32#########################################################################
33
Marian Balakowiczf9328632006-09-01 19:49:50 +020034# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
wdenk21b70532002-08-14 08:41:39 +000036
Marian Balakowiczf9328632006-09-01 19:49:50 +020037sinclude $(obj).depend
wdenk21b70532002-08-14 08:41:39 +000038
39#########################################################################