]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - board/altera/socfpga/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
[karo-tx-uboot.git] / board / altera / socfpga / 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
11 LIB     = $(obj)lib$(BOARD).o
12
13 COBJS-y := socfpga_cyclone5.o
14 COBJS-$(CONFIG_SPL_BUILD) += pinmux_config.o
15
16 COBJS   := $(COBJS-y)
17 SRCS    := $(COBJS:.o=.c)
18 OBJS    := $(addprefix $(obj),$(COBJS))
19
20 $(LIB): $(obj).depend $(OBJS)
21         $(call cmd_link_o_target, $(OBJS))
22
23 clean:
24         rm -f $(OBJS)
25
26 distclean:      clean
27         rm -f $(LIB) core *.bak $(obj).depend
28
29 #########################################################################
30
31 # defines $(obj).depend target
32 include $(SRCTREE)/rules.mk
33
34 sinclude $(obj).depend
35
36 #########################################################################