Matthias Kaehlcke | 195dbd1 | 2010-02-01 21:29:39 +0100 | [diff] [blame] | 1 | # |
| 2 | # Cirrus Logic EP93xx CPU-specific Makefile |
| 3 | # |
| 4 | # Copyright (C) 2009 Matthias Kaehlcke <matthias@kaehlcke.net> |
| 5 | # |
| 6 | # Copyright (C) 2004, 2005 |
| 7 | # Cory T. Tusar, Videon Central, Inc., <ctusar@videon-central.com> |
| 8 | # |
| 9 | # Copyright (C) 2006 |
| 10 | # Dominic Rath <Dominic.Rath@gmx.de> |
| 11 | # |
| 12 | # Based on an original Makefile, which is |
| 13 | # |
| 14 | # (C) Copyright 2000, 2001, 2002 |
| 15 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 16 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 17 | # SPDX-License-Identifier: GPL-2.0+ |
Matthias Kaehlcke | 195dbd1 | 2010-02-01 21:29:39 +0100 | [diff] [blame] | 18 | # |
| 19 | include $(TOPDIR)/config.mk |
| 20 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 21 | LIB = $(obj)lib$(SOC).o |
Matthias Kaehlcke | 195dbd1 | 2010-02-01 21:29:39 +0100 | [diff] [blame] | 22 | |
| 23 | COBJS = cpu.o led.o speed.o timer.o |
| 24 | SOBJS = lowlevel_init.o |
| 25 | |
| 26 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 27 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 28 | |
| 29 | all: $(obj).depend $(LIB) |
| 30 | |
| 31 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 32 | $(call cmd_link_o_target, $(OBJS)) |
Matthias Kaehlcke | 195dbd1 | 2010-02-01 21:29:39 +0100 | [diff] [blame] | 33 | |
| 34 | ######################################################################### |
| 35 | |
| 36 | # defines $(obj).depend target |
| 37 | include $(SRCTREE)/rules.mk |
| 38 | |
| 39 | sinclude $(obj).depend |
| 40 | |
| 41 | ######################################################################### |