lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # |
| 2 | # ZTE (C) Copyright 2014 |
| 3 | # Author: YinWenguan |
| 4 | # |
| 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB := $(obj)libled.o |
| 10 | |
| 11 | ifdef CONFIG_ZX297520V3E_CPE_SWITCH |
| 12 | COBJS-y += led_cpe_switch.o |
| 13 | else |
| 14 | COBJS-y += led.o |
| 15 | endif |
| 16 | |
| 17 | COBJS := $(sort $(COBJS-y)) |
| 18 | SRCS := $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | |
| 21 | all: $(LIB) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) |
| 24 | $(call cmd_link_o_target, $(OBJS)) |
| 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |