]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/altera/nios2-generic/Makefile
Merge branch 'u-boot/master' into u-boot-arm/master
[karo-tx-uboot.git] / board / altera / nios2-generic / Makefile
1 #
2 # (C) Copyright 2001-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 # (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
5 #
6 # SPDX-License-Identifier:      GPL-2.0+
7 #
8
9 include $(TOPDIR)/config.mk
10 ifneq ($(OBJTREE),$(SRCTREE))
11 $(shell mkdir -p $(obj)../common)
12 endif
13
14 LIB     = $(obj)lib$(BOARD).o
15
16 COBJS-y := $(BOARD).o
17 COBJS-$(CONFIG_CMD_IDE) += ../common/cfide.o
18 COBJS-$(CONFIG_EPLED) += ../common/epled.o
19 COBJS-$(CONFIG_SEVENSEG) += ../common/sevenseg.o
20
21 SOBJS-y := text_base.o
22
23 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
24 OBJS    := $(addprefix $(obj),$(COBJS-y))
25 SOBJS   := $(addprefix $(obj),$(SOBJS-y))
26
27 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
28         $(call cmd_link_o_target, $(OBJS) $(SOBJS))
29
30 #########################################################################
31
32 # defines $(obj).depend target
33 include $(SRCTREE)/rules.mk
34
35 sinclude $(obj).depend
36
37 #########################################################################