xref: /openbmc/u-boot/arch/arm/cpu/pxa/Makefile (revision c0dcece7)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	= $(obj)lib$(CPU).o
11
12START	= start.o
13
14COBJS-$(CONFIG_CPU_PXA25X)	= pxa2xx.o
15COBJS-$(CONFIG_CPU_PXA27X)	= pxa2xx.o
16
17COBJS-y	+= cpuinfo.o
18
19COBJS	= $(COBJS-y)
20COBJS	+= timer.o
21COBJS	+= usb.o
22
23SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
24OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
25START	:= $(addprefix $(obj),$(START))
26
27all:	$(obj).depend $(START) $(LIB)
28
29$(LIB):	$(OBJS)
30	$(call cmd_link_o_target, $(OBJS))
31
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################
40