blob: c84186a67cdd7c519bd34d97dca4ae7ea58f132f [file] [log] [blame]
wdenk21b70532002-08-14 08:41:39 +00001#
Marian Balakowiczd62379d2006-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 Denkd79de1d2013-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 Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenk21b70532002-08-14 08:41:39 +000011
12START = start.o
Jean-Christophe PLAGNIOL-VILLARD8c9fc002009-05-15 23:47:02 +020013
Marek Vasut9da6fe52011-11-26 07:32:24 +010014COBJS-$(CONFIG_CPU_PXA25X) = pxa2xx.o
15COBJS-$(CONFIG_CPU_PXA27X) = pxa2xx.o
16
Marek Vasut78aca0e2011-11-26 08:11:32 +010017COBJS-y += cpuinfo.o
18
Marek Vasut9da6fe52011-11-26 07:32:24 +010019COBJS = $(COBJS-y)
Jean-Christophe PLAGNIOL-VILLARD8c9fc002009-05-15 23:47:02 +020020COBJS += timer.o
21COBJS += usb.o
wdenk21b70532002-08-14 08:41:39 +000022
Marian Balakowiczd62379d2006-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 Carliera8d426f2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
wdenk21b70532002-08-14 08:41:39 +000031
32#########################################################################
33
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
wdenk21b70532002-08-14 08:41:39 +000036
Marian Balakowiczd62379d2006-09-01 19:49:50 +020037sinclude $(obj).depend
wdenk21b70532002-08-14 08:41:39 +000038
39#########################################################################