Prafulla Wadaskar | c0c7a11 | 2010-10-12 16:31:40 +0530 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2010 |
| 3 | # Marvell Semiconductor <www.marvell.com> |
| 4 | # Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 5 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Prafulla Wadaskar | c0c7a11 | 2010-10-12 16:31:40 +0530 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | LIB = $(obj)lib$(SOC).o |
| 12 | |
| 13 | COBJS-y = cpu.o timer.o dram.o |
| 14 | |
| 15 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) |
| 17 | |
| 18 | all: $(obj).depend $(LIB) |
| 19 | |
| 20 | $(LIB): $(OBJS) |
Mike Frysinger | 57e0deb | 2011-10-18 05:30:17 +0000 | [diff] [blame] | 21 | $(call cmd_link_o_target, $(OBJS)) |
Prafulla Wadaskar | c0c7a11 | 2010-10-12 16:31:40 +0530 | [diff] [blame] | 22 | |
| 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |