Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 1 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0+ |
Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/config.mk |
| 6 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 7 | LIB = $(obj)lib$(SOC).o |
Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 8 | |
Marek Vasut | d731282 | 2012-07-21 05:02:21 +0000 | [diff] [blame] | 9 | COBJS += aemif.o clock.o init.o mux.o timer.o |
Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 10 | SOBJS += lowlevel_init.o |
| 11 | |
| 12 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 13 | |
| 14 | OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) |
| 15 | START := $(addprefix $(obj),$(START)) |
| 16 | |
| 17 | all: $(obj).depend $(LIB) |
| 18 | |
| 19 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 20 | $(call cmd_link_o_target, $(OBJS)) |
Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 21 | |
| 22 | ######################################################################### |
| 23 | |
| 24 | # defines $(obj).depend target |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################### |