| SHELL = /bin/sh |
| RM = rm -f |
| |
| LOCAL_CFLAGS := -Wall \ |
| -std=gnu++14 \ |
| -g -Os \ |
| -flto \ |
| -DRIL_SHLIB \ |
| -DATCI_PARSE \ |
| -DKEEP_ALIVE \ |
| -DECALL_SUPPORT |
| |
| $(warning ################# C2K support: $(RAT_CONFIG_C2K_SUPPORT)) |
| ifeq ($(strip $(RAT_CONFIG_C2K_SUPPORT)), yes) |
| LOCAL_CFLAGS += -DC2K_SUPPORT |
| |
| endif |
| |
| ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsds) |
| LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 \ |
| -DANDROID_MULTI_SIM \ |
| -DMODE_DSDS |
| endif |
| |
| ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsss) |
| LOCAL_CFLAGS += -DMODE_DSSS |
| endif |
| |
| $(warning ################# TARGET_PLATFORM: $(TARGET_PLATFORM)) |
| ifeq ($(strip $(TARGET_PLATFORM)), mt2731) |
| $(warning ################# TARGET_PLATFORM_MT2731) |
| LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2731 \ |
| -DMD_93_SUPPORT |
| else ifeq ($(strip $(TARGET_PLATFORM)), mt2635) |
| $(warning ################# TARGET_PLATFORM_MT2635) |
| LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2635 \ |
| -DMD_90_SUPPORT |
| endif |
| |
| ifeq ($(strip $(TARGET_PLATFORM)), mt2735) |
| LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2735 |
| LOCAL_CFLAGS += -DBASELIB_DIR_LIB64 -DTELEMATIC_5G_SUPPORT |
| endif |
| |
| LOCAL_PATH = . |
| |
| LOCAL_C_INCLUDES = \ |
| -I. \ |
| -I$(LOCAL_PATH)/data \ |
| -I$(LOCAL_PATH)/util \ |
| -I$(LOCAL_PATH)/em/rfdesense \ |
| -I$(LOCAL_PATH)/em \ |
| -I$(LOCAL_PATH)/sms \ |
| -I$(LOCAL_PATH)/sms/cdma \ |
| -I$(LOCAL_PATH)/sms/gsm \ |
| -I$(LOCAL_PATH)/atci \ |
| -I$(LOCAL_PATH)/stateManager \ |
| -I$(ROOT)$(includedir)/logger \ |
| -I$(ROOT)$(includedir)/vendor-ril \ |
| -I$(ROOT)$(includedir)/gstreamer-1.0 \ |
| -I$(ROOT)$(includedir)/glib-2.0 \ |
| -I$(ROOT)$(libdir)/glib-2.0/include \ |
| -I$(ROOT)$(libdir)/gstreamer-1.0/include\ |
| -I$(ROOT)$(includedir)/dbus-1.0 \ |
| -I$(ROOT)$(libdir)/dbus-1.0/include \ |
| |
| |
| LOCAL_LIBS := \ |
| -L. \ |
| -ldl \ |
| -lrt \ |
| -lstdc++ \ |
| -llog \ |
| -lcutils \ |
| -lutils \ |
| -lpower \ |
| -lbinder \ |
| -lpthread \ |
| -lmtk_audio_mixer_ctrl \ |
| -lasound \ |
| -lpal \ |
| -lgstreamer-1.0 \ |
| -lglib-2.0 \ |
| -lgstbase-1.0 \ |
| -lgstreamer-1.0 \ |
| -lgobject-2.0 \ |
| -lgio-2.0 \ |
| -ldtmf \ |
| -lapn \ |
| -ldbus-1 \ |
| |
| ifeq ($(strip $(TARGET_PLATFORM)), mt2735) |
| LOCAL_LIBS += -luciwrapper |
| else |
| LOCAL_LIBS += -lsncfg |
| endif |
| |
| SOURCES = $(wildcard util/*.cpp *.cpp data/*.cpp em/rfdesense/*.cpp em/networkinfo/*.cpp em/*.cpp sms/*.cpp sms/gsm/*.cpp sms/cdma/*.cpp atci/*.cpp stateManager/*.cpp) |
| |
| EXECUTABLE = multi-user-test |
| |
| OBJECTS=$(SOURCES:.cpp=.o) |
| all: $(EXECUTABLE) |
| |
| $(EXECUTABLE): $(OBJECTS) |
| $(CXX) $(OBJECTS) $(LOCAL_LIBS) $(LOCAL_CFLAGS) $(LOCAL_C_INCLUDES) -o $@ |
| |
| %.o : %.cpp |
| $(CXX) $(LOCAL_C_INCLUDES) $(LOCAL_CFLAGS) $(LOCAL_LIBS) -o $@ -c $< |
| |
| .PHONY: clean |
| clean: |
| $(RM) $(OBJECTS) $(EXECUTABLE) |