| # |
| # ZTE (C) Copyright 2014 |
| # Author: YinWenguan |
| # |
| # |
| |
| include $(TOPDIR)/config.mk |
| |
| LIB := $(obj)libled.o |
| |
| ifdef CONFIG_ZX297520V3E_CPE_SWITCH |
| COBJS-y += led_cpe_switch.o |
| else |
| COBJS-y += led.o |
| endif |
| |
| COBJS := $(sort $(COBJS-y)) |
| SRCS := $(COBJS:.o=.c) |
| OBJS := $(addprefix $(obj),$(COBJS)) |
| |
| all: $(LIB) |
| |
| $(LIB): $(obj).depend $(OBJS) |
| $(call cmd_link_o_target, $(OBJS)) |
| |
| ######################################################################### |
| |
| # defines $(obj).depend target |
| include $(SRCTREE)/rules.mk |
| |
| sinclude $(obj).depend |
| |
| ######################################################################### |