trem | 0053e3c | 2013-09-10 22:08:39 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2004 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # (C) Copyright 2012-2013 |
| 5 | # Eric Jarrige <eric.jarrige@armadeus.org> |
| 6 | # |
| 7 | # SPDX-License-Identifier: GPL-2.0+ |
| 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)lib$(BOARD).o |
| 13 | |
| 14 | COBJS := apf27.o |
| 15 | SOBJS := lowlevel_init.o |
trem | 9785289 | 2013-09-10 22:08:40 +0200 | [diff] [blame] | 16 | ifdef CONFIG_FPGA |
| 17 | COBJS += fpga.o |
| 18 | endif |
trem | 0053e3c | 2013-09-10 22:08:39 +0200 | [diff] [blame] | 19 | |
| 20 | SRCS := $(COBJS:.o=.c) $(SOBJS:.o=.S) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 25 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |