| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 1 | SHELL = /bin/sh | 
 | 2 | RM = rm -f | 
 | 3 |  | 
 | 4 | LOCAL_CFLAGS := -Wall \ | 
 | 5 |                 -std=gnu++14 \ | 
 | 6 |                 -g -Os \ | 
 | 7 |                 -flto \ | 
 | 8 |                 -DRIL_SHLIB \ | 
 | 9 |                 -DATCI_PARSE \ | 
 | 10 |                 -DKEEP_ALIVE \ | 
 | 11 |                 -DECALL_SUPPORT | 
 | 12 |  | 
| xj | 112b967 | 2022-01-25 16:13:48 +0800 | [diff] [blame] | 13 | $(warning ################# C2K support: $(RAT_CONFIG_C2K_SUPPORT)) | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 14 | ifeq ($(strip $(RAT_CONFIG_C2K_SUPPORT)), yes) | 
 | 15 |     LOCAL_CFLAGS += -DC2K_SUPPORT | 
 | 16 | endif | 
 | 17 |  | 
 | 18 | ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsds) | 
 | 19 |     LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 \ | 
 | 20 |                      -DANDROID_MULTI_SIM \ | 
 | 21 |                      -DMODE_DSDS | 
 | 22 | endif | 
 | 23 |  | 
 | 24 | ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsss) | 
 | 25 |     LOCAL_CFLAGS += -DMODE_DSSS | 
 | 26 | endif | 
 | 27 |  | 
 | 28 | $(warning ################# TARGET_PLATFORM: $(TARGET_PLATFORM)) | 
 | 29 | ifeq ($(strip $(TARGET_PLATFORM)), mt2731) | 
 | 30 | $(warning ################# TARGET_PLATFORM_MT2731) | 
 | 31 |     LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2731 \ | 
 | 32 |                     -DMD_93_SUPPORT | 
 | 33 | else ifeq ($(strip $(TARGET_PLATFORM)), mt2635) | 
 | 34 | $(warning ################# TARGET_PLATFORM_MT2635) | 
 | 35 |     LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2635 \ | 
 | 36 |                     -DMD_90_SUPPORT | 
 | 37 | endif | 
 | 38 |  | 
 | 39 | ifeq ($(strip $(TARGET_PLATFORM)), mt2735) | 
 | 40 | LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2735 | 
 | 41 | LOCAL_CFLAGS += -DBASELIB_DIR_LIB64 -DTELEMATIC_5G_SUPPORT | 
 | 42 | endif | 
 | 43 |  | 
 | 44 | LOCAL_PATH   = . | 
 | 45 |  | 
 | 46 | LOCAL_C_INCLUDES = \ | 
 | 47 |   -I. \ | 
 | 48 |   -I$(LOCAL_PATH)/data \ | 
 | 49 |    -I$(LOCAL_PATH)/util \ | 
 | 50 |   -I$(LOCAL_PATH)/em/rfdesense \ | 
 | 51 |   -I$(LOCAL_PATH)/em \ | 
 | 52 |   -I$(LOCAL_PATH)/sms \ | 
 | 53 |   -I$(LOCAL_PATH)/sms/cdma \ | 
 | 54 |   -I$(LOCAL_PATH)/sms/gsm \ | 
| lh | 69e7091 | 2022-01-20 19:32:14 -0800 | [diff] [blame] | 55 |   -I$(LOCAL_PATH)/sms/lynqSmsManager \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 56 |   -I$(LOCAL_PATH)/atci \ | 
 | 57 |   -I$(LOCAL_PATH)/stateManager \ | 
 | 58 |   -I$(LOCAL_PATH)/ecall/ \ | 
 | 59 |   -I$(LOCAL_PATH)/ecall/gost \ | 
 | 60 |   -I$(LOCAL_PATH)/ecall/gost/utils \ | 
 | 61 |   -I$(LOCAL_PATH)/ecall/gost/sslp \ | 
 | 62 |   -I$(LOCAL_PATH)/ecall/gost/sslp/auth \ | 
 | 63 |   -I$(LOCAL_PATH)/ecall/gost/sslp/firmware \ | 
 | 64 |   -I$(LOCAL_PATH)/ecall/gost/sslp/commands \ | 
 | 65 |   -I$(LOCAL_PATH)/ecall/gost/sslp/ecall \ | 
 | 66 |   -I$(LOCAL_PATH)/ecall/gost/sslp/teledata \ | 
| ll | 16f1831 | 2022-03-14 16:14:28 +0800 | [diff] [blame] | 67 |   -I$(LOCAL_PATH)/rndis \ | 
 | 68 |   -I$(LOCAL_PATH)/factory \ | 
 | 69 |   -I$(LOCAL_PATH)/fota \ | 
| rita | 903ae28 | 2022-08-10 09:36:49 +0800 | [diff] [blame] | 70 |   -I$(LOCAL_PATH)/temp \ | 
| q.huang | 30a2412 | 2023-12-14 14:11:58 +0800 | [diff] [blame] | 71 |   -I$(LOCAL_PATH)/rtp \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 72 |   -I$(ROOT)$(includedir)/logger \ | 
 | 73 |   -I$(ROOT)$(includedir)/liblog \ | 
| rita | 903ae28 | 2022-08-10 09:36:49 +0800 | [diff] [blame] | 74 |   -I$(ROOT)$(includedir)/liblynq-thermal \ | 
| ll | 16f1831 | 2022-03-14 16:14:28 +0800 | [diff] [blame] | 75 |   -I$(ROOT)$(includedir)/include  \ | 
 | 76 |   -I$(ROOT)$(includedir)/ftp \ | 
 | 77 |   -I$(ROOT)$(includedir)/logger \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 78 |   -I$(ROOT)$(includedir)/vendor-ril \ | 
 | 79 |   -I$(ROOT)$(includedir)/gstreamer-1.0 \ | 
 | 80 |   -I$(ROOT)$(includedir)/glib-2.0 \ | 
| q.huang | ee6bcf2 | 2023-01-10 14:29:20 +0800 | [diff] [blame] | 81 |   -I$(ROOT)$(includedir)/lynq_shm \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 82 |   -I$(ROOT)$(libdir)/glib-2.0/include \ | 
 | 83 |   -I$(ROOT)$(libdir)/gstreamer-1.0/include\ | 
 | 84 |   -I$(ROOT)$(includedir)/dbus-1.0 \ | 
 | 85 |   -I$(ROOT)$(libdir)/dbus-1.0/include \ | 
| rita | 2f860ea | 2022-04-28 16:30:25 +0800 | [diff] [blame] | 86 |   -I$(ROOT)$(includedir) \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 87 |  | 
 | 88 |  | 
 | 89 | LOCAL_LIBS := \ | 
 | 90 |     -L. \ | 
 | 91 |     -ldl \ | 
 | 92 |     -lrt \ | 
 | 93 |     -lstdc++ \ | 
 | 94 |     -llog \ | 
 | 95 |     -llynq-log \ | 
 | 96 |     -lcutils \ | 
 | 97 |     -lutils \ | 
 | 98 |     -lpower \ | 
 | 99 |     -lbinder \ | 
 | 100 |     -lpthread \ | 
 | 101 |     -lmtk_audio_mixer_ctrl \ | 
 | 102 |     -lasound \ | 
 | 103 |     -lpal \ | 
 | 104 |     -lgstreamer-1.0 \ | 
 | 105 |     -lglib-2.0 \ | 
 | 106 |     -lgstbase-1.0 \ | 
 | 107 |     -lgstreamer-1.0 \ | 
 | 108 |     -lgobject-2.0 \ | 
 | 109 |     -lgio-2.0 \ | 
 | 110 |     -ldtmf \ | 
 | 111 |     -lapn \ | 
 | 112 |     -ldbus-1 \ | 
| ll | 16f1831 | 2022-03-14 16:14:28 +0800 | [diff] [blame] | 113 |     -llynq-log \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 114 |     -lsqlite3 \ | 
| ll | 16f1831 | 2022-03-14 16:14:28 +0800 | [diff] [blame] | 115 |     -lnandapi  \ | 
| rita | 903ae28 | 2022-08-10 09:36:49 +0800 | [diff] [blame] | 116 |     -llynq-thermal  \ | 
| rita | 2f860ea | 2022-04-28 16:30:25 +0800 | [diff] [blame] | 117 |     -llynq-systime \ | 
 | 118 |     -llynq-uci \ | 
| tao.liu | ed15c4b | 2022-11-17 16:48:50 +0800 | [diff] [blame] | 119 |     -llynq-fota \ | 
 | 120 |     -llynq-protcl \ | 
| q.huang | ee6bcf2 | 2023-01-10 14:29:20 +0800 | [diff] [blame] | 121 |     -llynq-shm  \ | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 122 |  | 
 | 123 | ifeq ($(strip $(TARGET_PLATFORM)), mt2735) | 
 | 124 | LOCAL_LIBS += -luciwrapper | 
 | 125 | else | 
 | 126 | LOCAL_LIBS += -lsncfg | 
 | 127 | endif | 
 | 128 |  | 
 | 129 |  | 
| q.huang | 30a2412 | 2023-12-14 14:11:58 +0800 | [diff] [blame] | 130 | SOURCES = $(wildcard util/*.cpp *.cpp ecall/*.cpp ecall/gost/*.cpp ecall/gost/utils/*.cpp ecall/gost/sslp/*.cpp ecall/gost/sslp/auth/*.cpp ecall/gost/sslp/firmware/*.cpp ecall/gost/sslp/commands/*.cpp ecall/gost/sslp/ecall/*.cpp ecall/gost/sslp/teledata/*.cpp data/*.cpp  em/rfdesense/*.cpp em/networkinfo/*.cpp em/*.cpp sms/*.cpp sms/gsm/*.cpp sms/cdma/*.cpp atci/*.cpp stateManager/*.cpp sms/lynqSmsManager/*.cpp  rndis/*.cpp factory/*.cpp  temp/*.cpp fota/*.cpp  rtp/*.cpp) | 
| lh | 2582795 | 2022-01-10 00:34:35 -0800 | [diff] [blame] | 131 |  | 
 | 132 | EXECUTABLE = lynq-ril-service | 
 | 133 |  | 
 | 134 | OBJECTS=$(SOURCES:.cpp=.o) | 
 | 135 | all: $(EXECUTABLE) | 
 | 136 |  | 
 | 137 | $(EXECUTABLE): $(OBJECTS) | 
 | 138 | 	$(CXX) $(OBJECTS) $(LOCAL_LIBS) $(LOCAL_CFLAGS) $(LOCAL_C_INCLUDES) -o $@ | 
 | 139 |  | 
 | 140 | %.o : %.cpp | 
 | 141 | 	$(CXX) $(LOCAL_C_INCLUDES) $(LOCAL_CFLAGS) $(LOCAL_LIBS) -o $@ -c $< | 
 | 142 |  | 
 | 143 | .PHONY: clean | 
 | 144 | clean: | 
 | 145 | 	$(RM) $(OBJECTS) $(EXECUTABLE) |