xref: /openbmc/u-boot/board/micronas/vct/Makefile (revision 3765b3e7)
1#
2# (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
3#
4# SPDX-License-Identifier:	GPL-2.0+
5#
6
7include $(TOPDIR)/config.mk
8
9LIB	= $(obj)lib$(BOARD).o
10
11COBJS-y := $(BOARD).o
12COBJS-y += ebi.o
13COBJS-$(CONFIG_VCT_NOR) += ebi_nor_flash.o
14COBJS-$(CONFIG_VCT_ONENAND) += ebi_onenand.o
15COBJS-$(CONFIG_DRIVER_SMC911X) += ebi_smc911x.o smc_eeprom.o
16COBJS-y += gpio.o
17COBJS-y += top.o
18COBJS-$(CONFIG_USB_EHCI_VCT) += dcgu.o ehci.o scc.o
19
20COBJS	:= $(sort $(COBJS-y))
21SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS	:= $(addprefix $(obj),$(COBJS))
23SOBJS	:= $(addprefix $(obj),$(SOBJS))
24
25$(LIB):	$(OBJS) $(SOBJS)
26	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################
36