Minkyu Kang | 0a2b631 | 2010-08-19 13:48:11 +0900 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2009 Samsung Electronics |
| 3 | # Minkyu Kang <mk7.kang@samsung.com> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Minkyu Kang | 0a2b631 | 2010-08-19 13:48:11 +0900 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)libs5p-common.o |
Minkyu Kang | 0a2b631 | 2010-08-19 13:48:11 +0900 | [diff] [blame] | 11 | |
| 12 | COBJS-y += cpu_info.o |
Inderpal Singh | 848048a | 2013-04-04 23:09:20 +0000 | [diff] [blame] | 13 | ifndef CONFIG_SPL_BUILD |
Minkyu Kang | 0a2b631 | 2010-08-19 13:48:11 +0900 | [diff] [blame] | 14 | COBJS-y += timer.o |
Chander Kashyap | 9c88fb8 | 2011-04-14 19:05:18 +0000 | [diff] [blame] | 15 | COBJS-y += sromc.o |
| 16 | COBJS-$(CONFIG_PWM) += pwm.o |
Inderpal Singh | 848048a | 2013-04-04 23:09:20 +0000 | [diff] [blame] | 17 | endif |
Minkyu Kang | 0a2b631 | 2010-08-19 13:48:11 +0900 | [diff] [blame] | 18 | |
| 19 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS)) |
| 21 | |
| 22 | all: $(obj).depend $(LIB) |
| 23 | |
| 24 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
Minkyu Kang | 0a2b631 | 2010-08-19 13:48:11 +0900 | [diff] [blame] | 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |