Tirumala Marri | 6583ef4 | 2010-09-28 14:15:21 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2010, Applied Micro Circuits Corporation |
| 3 | # Author: Tirumala R Marri <tmarri@apm.com> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Tirumala Marri | 6583ef4 | 2010-09-28 14:15:21 -0700 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)lib$(BOARD).o |
Tirumala Marri | 6583ef4 | 2010-09-28 14:15:21 -0700 | [diff] [blame] | 11 | |
| 12 | COBJS-y := $(BOARD).o |
| 13 | SOBJS := init.o |
| 14 | |
| 15 | COBJS := $(COBJS-y) |
| 16 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 18 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 19 | |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 20 | all: $(LIB) $(SOBJS) |
| 21 | |
| 22 | $(LIB): $(OBJS) |
| 23 | $(call cmd_link_o_target, $^) |
Tirumala Marri | 6583ef4 | 2010-09-28 14:15:21 -0700 | [diff] [blame] | 24 | |
Tirumala Marri | 6583ef4 | 2010-09-28 14:15:21 -0700 | [diff] [blame] | 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |