2 # Copyright (C) 2011 Xiangfu Liu <xiangfu@openmobilefree.net>
4 # SPDX-License-Identifier: GPL-2.0+
7 include $(TOPDIR)/config.mk
9 LIB = $(obj)lib$(CPU).o
13 COBJS-y = cpu.o timer.o jz_serial.o
15 COBJS-$(CONFIG_JZ4740) += jz4740.o
17 SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
18 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
19 START := $(addprefix $(obj),$(START))
21 all: $(obj).depend $(START) $(LIB)
24 $(call cmd_link_o_target, $(OBJS))
26 #########################################################################
28 # defines $(obj).depend target
29 include $(SRCTREE)/rules.mk
31 sinclude $(obj).depend
33 #########################################################################