Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2013 Freescale Semiconductor, Inc. |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB = $(obj)lib$(SOC).o |
| 10 | |
| 11 | COBJS += generic.o |
| 12 | COBJS += timer.o |
| 13 | |
| 14 | SRCS := $(COBJS:.o=.c) |
| 15 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 16 | |
| 17 | all: $(obj).depend $(LIB) |
| 18 | |
| 19 | $(LIB): $(OBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS)) |
| 21 | |
| 22 | ######################################################################### |
| 23 | |
| 24 | # defines $(obj).depend target |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################### |