]>
Commit | Line | Data |
---|---|---|
d0e6665a TM |
1 | # |
2 | # Copyright (c) 2010, Applied Micro Circuits Corporation | |
3 | # Author: Tirumala R Marri <tmarri@apm.com> | |
4 | # | |
1a459660 | 5 | # SPDX-License-Identifier: GPL-2.0+ |
d0e6665a TM |
6 | # |
7 | ||
8 | include $(TOPDIR)/config.mk | |
9 | ||
6d8962e8 | 10 | LIB = $(obj)lib$(BOARD).o |
d0e6665a TM |
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 | ||
ee8028b7 WD |
20 | all: $(LIB) $(SOBJS) |
21 | ||
22 | $(LIB): $(OBJS) | |
23 | $(call cmd_link_o_target, $^) | |
d0e6665a | 24 | |
d0e6665a TM |
25 | ######################################################################### |
26 | ||
27 | # defines $(obj).depend target | |
28 | include $(SRCTREE)/rules.mk | |
29 | ||
30 | sinclude $(obj).depend | |
31 | ||
32 | ######################################################################### |