Chandan Nath | 5289e83 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 1 | # |
| 2 | # Makefile |
| 3 | # |
| 4 | # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Chandan Nath | 5289e83 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | LIB = $(obj)lib$(BOARD).o |
| 12 | |
Steve Kipisz | c5c7a7c | 2013-07-18 15:13:04 -0400 | [diff] [blame^] | 13 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_NOR_BOOT),y) |
Tom Rini | 973b663 | 2012-07-30 16:13:10 -0700 | [diff] [blame] | 14 | COBJS := mux.o |
Tom Rini | db7dd81 | 2012-07-31 10:50:01 -0700 | [diff] [blame] | 15 | endif |
Chandan Nath | 5289e83 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 16 | |
Peter Korsgaard | e363426 | 2012-10-18 01:21:09 +0000 | [diff] [blame] | 17 | COBJS += board.o |
Chandan Nath | 5289e83 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 18 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 24 | |
| 25 | clean: |
| 26 | rm -f $(SOBJS) $(OBJS) |
| 27 | |
| 28 | distclean: clean |
| 29 | rm -f $(LIB) core *.bak $(obj).depend |
| 30 | |
| 31 | ######################################################################### |
| 32 | |
| 33 | # defines $(obj).depend target |
| 34 | include $(SRCTREE)/rules.mk |
| 35 | |
| 36 | sinclude $(obj).depend |
| 37 | |
| 38 | ######################################################################### |