| # |
| # SPDX-License-Identifier: GPL-2.0+ |
| # |
| |
| include $(TOPDIR)/config.mk |
| |
| LIB = $(obj)lib$(SOC).o |
| |
| COBJS += aemif.o clock.o init.o mux.o timer.o |
| SOBJS += lowlevel_init.o |
| |
| SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| |
| OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) |
| START := $(addprefix $(obj),$(START)) |
| |
| all: $(obj).depend $(LIB) |
| |
| $(LIB): $(OBJS) |
| $(call cmd_link_o_target, $(OBJS)) |
| |
| ######################################################################### |
| |
| # defines $(obj).depend target |
| include $(SRCTREE)/rules.mk |
| |
| sinclude $(obj).depend |
| |
| ######################################################################### |