Stefan Roese | 9182d2f | 2009-01-21 17:24:39 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 9182d2f | 2009-01-21 17:24:39 +0100 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB = $(obj)lib$(BOARD).o |
Stefan Roese | 9182d2f | 2009-01-21 17:24:39 +0100 | [diff] [blame] | 10 | |
| 11 | COBJS-y := $(BOARD).o |
| 12 | COBJS-y += ebi.o |
| 13 | COBJS-$(CONFIG_VCT_NOR) += ebi_nor_flash.o |
| 14 | COBJS-$(CONFIG_VCT_ONENAND) += ebi_onenand.o |
| 15 | COBJS-$(CONFIG_DRIVER_SMC911X) += ebi_smc911x.o smc_eeprom.o |
| 16 | COBJS-y += gpio.o |
| 17 | COBJS-y += top.o |
| 18 | COBJS-$(CONFIG_USB_EHCI_VCT) += dcgu.o ehci.o scc.o |
| 19 | |
| 20 | COBJS := $(sort $(COBJS-y)) |
| 21 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 24 | |
| 25 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Stefan Roese | 9182d2f | 2009-01-21 17:24:39 +0100 | [diff] [blame] | 27 | |
Stefan Roese | 9182d2f | 2009-01-21 17:24:39 +0100 | [diff] [blame] | 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |