Lokesh Vutla | fbf2728 | 2013-07-30 11:36:27 +0530 | [diff] [blame] | 1 | # |
| 2 | # Makefile |
| 3 | # |
| 4 | # Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | # |
| 6 | # SPDX-License-Identifier: GPL-2.0+ |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | LIB = $(obj)lib$(BOARD).o |
| 12 | |
| 13 | ifdef CONFIG_SPL_BUILD |
| 14 | COBJS := mux.o |
| 15 | endif |
| 16 | |
| 17 | COBJS += board.o |
| 18 | SRCS := $(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 | ######################################################################### |