Eric Cooper | 38041db | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu> |
| 3 | # |
| 4 | # Based on sheevaplug/Makefile originally written by |
| 5 | # Prafulla Wadaskar <prafulla@marvell.com> |
| 6 | # (C) Copyright 2009 |
| 7 | # Marvell Semiconductor <www.marvell.com> |
| 8 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Eric Cooper | 38041db | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
| 14 | LIB = $(obj)lib$(BOARD).o |
| 15 | |
| 16 | COBJS := dockstar.o |
| 17 | |
| 18 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 24 | |
Eric Cooper | 38041db | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |