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)liblcd.o |
| 10 | |
| 11 | ifeq ($(CONFIG_ZX297520V3E_MIFI_MINI_XR819),y) |
| 12 | COBJS-y += lcd_comm_array.o |
| 13 | COBJS-y += lcd_res_128x128.o |
| 14 | else |
| 15 | COBJS-y += lcd_comm.o |
| 16 | endif |
| 17 | |
| 18 | COBJS-$(CONFIG_ZX297520V3E_MIFI) += lcd_prj_mifi.o |
| 19 | COBJS-$(CONFIG_ZX297520V3E_FWP) += lcd_prj.o |
| 20 | COBJS-$(CONFIG_ZX297520V3E_MIFI_MINI) += lcd_prj_mifi_mini.o |
| 21 | COBJS-$(CONFIG_ZX297520V3E_MIFI_MINI_XR819) += lcd_prj_mifi_mini_xr819.o |
| 22 | COBJS-$(CONFIG_ZX297520V3E_PHONE) += lcd_prj_phone.o |
| 23 | COBJS-$(CONFIG_ZX297520V3E_WATCH) += lcd_prj_watch.o |
| 24 | COBJS-$(CONFIG_ZX297520V3E_WATCH_CAP) += lcd_prj_watch.o |
| 25 | |
| 26 | COBJS := $(sort $(COBJS-y)) |
| 27 | SRCS := $(COBJS:.o=.c) |
| 28 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 29 | |
| 30 | all: $(LIB) |
| 31 | |
| 32 | $(LIB): $(obj).depend $(OBJS) |
| 33 | $(call cmd_link_o_target, $(OBJS)) |
| 34 | |
| 35 | ######################################################################### |
| 36 | |
| 37 | # defines $(obj).depend target |
| 38 | include $(SRCTREE)/rules.mk |
| 39 | |
| 40 | sinclude $(obj).depend |
| 41 | |
| 42 | ######################################################################### |