blob: bf58e046b178f8cc97b219bb626246d5850e2dbd [file] [log] [blame]
Xiangfu Liu80421fc2011-10-12 12:24:06 +08001#
2# Copyright (C) 2011 Xiangfu Liu <xiangfu@openmobilefree.net>
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Xiangfu Liu80421fc2011-10-12 12:24:06 +08005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(CPU).o
10
11START = start.o
12SOBJS-y =
13COBJS-y = cpu.o timer.o jz_serial.o
14
15COBJS-$(CONFIG_JZ4740) += jz4740.o
16
17SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
19START := $(addprefix $(obj),$(START))
20
21all: $(obj).depend $(START) $(LIB)
22
23$(LIB): $(OBJS)
24 $(call cmd_link_o_target, $(OBJS))
25
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################