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 | # |
| 6 | # This program is free software; you can redistribute it and/or |
| 7 | # modify it under the terms of the GNU General Public License as |
| 8 | # published by the Free Software Foundation; either version 2 of |
| 9 | # the License, or (at your option) any later version. |
| 10 | # |
| 11 | # This program is distributed "as is" WITHOUT ANY WARRANTY of any |
| 12 | # kind, whether express or implied; without even the implied warranty |
| 13 | # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | |
| 17 | include $(TOPDIR)/config.mk |
| 18 | |
| 19 | LIB = $(obj)lib$(BOARD).o |
| 20 | |
Tom Rini | db7dd81 | 2012-07-31 10:50:01 -0700 | [diff] [blame^] | 21 | ifdef CONFIG_SPL_BUILD |
Tom Rini | 973b663 | 2012-07-30 16:13:10 -0700 | [diff] [blame] | 22 | COBJS := mux.o |
Tom Rini | db7dd81 | 2012-07-31 10:50:01 -0700 | [diff] [blame^] | 23 | endif |
Chandan Nath | 5289e83 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 24 | |
| 25 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 26 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 27 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 28 | |
| 29 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 30 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 31 | |
| 32 | clean: |
| 33 | rm -f $(SOBJS) $(OBJS) |
| 34 | |
| 35 | distclean: clean |
| 36 | rm -f $(LIB) core *.bak $(obj).depend |
| 37 | |
| 38 | ######################################################################### |
| 39 | |
| 40 | # defines $(obj).depend target |
| 41 | include $(SRCTREE)/rules.mk |
| 42 | |
| 43 | sinclude $(obj).depend |
| 44 | |
| 45 | ######################################################################### |