Dirk Eibach | 255ef4d | 2011-10-20 11:12:55 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2007 |
| 3 | # Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Dirk Eibach | 255ef4d | 2011-10-20 11:12:55 +0200 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB = $(obj)lib$(BOARD).o |
| 11 | |
| 12 | COBJS-$(CONFIG_IO64) += io64.o |
| 13 | |
| 14 | COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o |
| 15 | |
| 16 | COBJS := $(BOARD).o $(COBJS-y) |
| 17 | |
| 18 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 20 | |
| 21 | $(LIB): $(obj).depend $(OBJS) |
| 22 | $(call cmd_link_o_target, $(OBJS)) |
| 23 | |
| 24 | clean: |
| 25 | rm -f $(OBJS) |
| 26 | |
| 27 | distclean: clean |
| 28 | rm -f $(LIB) core *.bak $(obj).depend |
| 29 | |
| 30 | ######################################################################### |
| 31 | |
| 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |
| 36 | |
| 37 | ######################################################################### |