blob: 56d318bb37781dfbbc1a27feb1220c5c4244badc [file] [log] [blame]
SHELL = /bin/sh
RM = rm -f
INC = -I$(top_srcdir)/../../../platform-libs/1.0-r0/platform/system/core/include
LDFLAGS = -L. -lc_dns
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
LOCAL_PATH = .
LOCAL_C_INCLUDES =
LOCAL_LIBS :=
EXECUTABLE = ping6_netid ping_netid
SRCS_PING = ping.c ping_common.c
SRCS_PING6 = ping6.c ping_common.c
OBJS = $(SRCS_PING:.c=.o)
OBJS6 = $(SRCS_PING6:.c=.o)
all: $(EXECUTABLE)
ping_netid: $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) $(INC) -o $@
ping6_netid: $(OBJS6)
$(CC) $(OBJS6) $(LDFLAGS) $(INC) -o $@
%.o:%.c
$(CC) $(INC) $(LDFLAGS) -o $@ -c $<
clean:
rm -rf $(EXECUTABLE) $(OBJS)