Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2007 |
| 3 | # Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 11 | $(shell mkdir -p $(obj)board/$(VENDOR)/common) |
| 12 | endif |
| 13 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(VENDOR).o |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 15 | |
Dirk Eibach | 20614a2 | 2013-06-26 16:04:26 +0200 | [diff] [blame^] | 16 | COBJS-$(CONFIG_SYS_FPGA_COMMON) += fpga.o |
| 17 | |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 18 | COBJS-$(CONFIG_IO) += miiphybb.o |
Dirk Eibach | 6fabe55 | 2011-10-20 11:12:55 +0200 | [diff] [blame] | 19 | COBJS-$(CONFIG_IO64) += miiphybb.o |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 20 | COBJS-$(CONFIG_IOCON) += osd.o |
Dirk Eibach | 81b3793 | 2011-01-21 09:31:21 +0100 | [diff] [blame] | 21 | COBJS-$(CONFIG_DLVISION_10G) += osd.o |
Dirk Eibach | 762d3df | 2013-06-26 15:55:17 +0200 | [diff] [blame] | 22 | COBJS-$(CONFIG_CONTROLCENTERD) += dp501.o |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 23 | |
| 24 | COBJS := $(COBJS-y) |
| 25 | SOBJS = |
| 26 | |
| 27 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 28 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 29 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 30 | |
| 31 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 32 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 33 | |
Dirk Eibach | 9a13d81 | 2010-10-21 10:50:05 +0200 | [diff] [blame] | 34 | ######################################################################### |
| 35 | |
| 36 | # defines $(obj).depend target |
| 37 | include $(SRCTREE)/rules.mk |
| 38 | |
| 39 | sinclude $(obj).depend |
| 40 | |
| 41 | ######################################################################### |