wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)lib$(CPU).o |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 11 | |
| 12 | START = start.o |
Jean-Christophe PLAGNIOL-VILLARD | b54384e | 2009-05-15 23:47:02 +0200 | [diff] [blame] | 13 | |
Marek Vasut | d10237d | 2011-11-26 07:32:24 +0100 | [diff] [blame] | 14 | COBJS-$(CONFIG_CPU_PXA25X) = pxa2xx.o |
| 15 | COBJS-$(CONFIG_CPU_PXA27X) = pxa2xx.o |
| 16 | |
Marek Vasut | e8de0fa | 2011-11-26 08:11:32 +0100 | [diff] [blame] | 17 | COBJS-y += cpuinfo.o |
| 18 | |
Marek Vasut | d10237d | 2011-11-26 07:32:24 +0100 | [diff] [blame] | 19 | COBJS = $(COBJS-y) |
Jean-Christophe PLAGNIOL-VILLARD | b54384e | 2009-05-15 23:47:02 +0200 | [diff] [blame] | 20 | COBJS += timer.o |
| 21 | COBJS += usb.o |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 22 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 23 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 24 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 25 | START := $(addprefix $(obj),$(START)) |
| 26 | |
| 27 | all: $(obj).depend $(START) $(LIB) |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 28 | |
| 29 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 31 | |
| 32 | ######################################################################### |
| 33 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 34 | # defines $(obj).depend target |
| 35 | include $(SRCTREE)/rules.mk |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 36 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 37 | sinclude $(obj).depend |
wdenk | 21b7053 | 2002-08-14 08:41:39 +0000 | [diff] [blame] | 38 | |
| 39 | ######################################################################### |