2 # (C) Copyright 2000-2003
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB = $(obj)libomap-common.o
16 ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
17 COBJS += hwinit-common.o
18 COBJS += clocks-common.o
19 COBJS += emif-common.o
24 ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
25 COBJS += boot-common.o
26 SOBJS += lowlevel_init.o
29 ifndef CONFIG_SPL_BUILD
30 ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
35 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
36 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
38 all: $(obj).depend $(LIB)
41 $(call cmd_link_o_target, $(OBJS))
43 #########################################################################
45 # defines $(obj).depend target
46 include $(SRCTREE)/rules.mk
48 sinclude $(obj).depend
50 #########################################################################