wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 5 | # (C) Copyright 2001 |
| 6 | # Erik Theisen, Wave 7 Optics, etheisen@mindspring.com. |
| 7 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(BOARD).o |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 14 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 15 | COBJS = $(BOARD).o flash.o fpga.o fsboot.o post2.o vpd.o cmd_vpd.o \ |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 16 | watchdog.o |
| 17 | SOBJS = init.o post1.o |
| 18 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 19 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 22 | |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 23 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $^) |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 25 | |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 26 | ######################################################################### |
| 27 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 30 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 31 | sinclude $(obj).depend |
wdenk | c6f35e6 | 2002-03-10 16:48:43 +0000 | [diff] [blame] | 32 | |
| 33 | ######################################################################### |