rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | SHELL = /bin/sh |
| 2 | RM = rm -f |
| 3 | |
| 4 | INC = -I$(top_srcdir)/../../../platform-libs/1.0-r0/platform/system/core/include |
| 5 | LDFLAGS = -L. -lc_dns |
| 6 | |
| 7 | LOCAL_CFLAGS := -Wall \ |
| 8 | -std=gnu++14 \ |
| 9 | -g -Os \ |
| 10 | -flto \ |
| 11 | -DRIL_SHLIB \ |
| 12 | -DATCI_PARSE \ |
| 13 | -DKEEP_ALIVE \ |
| 14 | -DECALL_SUPPORT |
| 15 | |
| 16 | $(warning ################# C2K support: $(RAT_CONFIG_C2K_SUPPORT)) |
| 17 | ifeq ($(strip $(RAT_CONFIG_C2K_SUPPORT)), yes) |
| 18 | LOCAL_CFLAGS += -DC2K_SUPPORT |
| 19 | |
| 20 | endif |
| 21 | |
| 22 | ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsds) |
| 23 | LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 \ |
| 24 | -DANDROID_MULTI_SIM \ |
| 25 | -DMODE_DSDS |
| 26 | endif |
| 27 | |
| 28 | ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsss) |
| 29 | LOCAL_CFLAGS += -DMODE_DSSS |
| 30 | endif |
| 31 | |
| 32 | $(warning ################# TARGET_PLATFORM: $(TARGET_PLATFORM)) |
| 33 | ifeq ($(strip $(TARGET_PLATFORM)), mt2731) |
| 34 | $(warning ################# TARGET_PLATFORM_MT2731) |
| 35 | LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2731 \ |
| 36 | -DMD_93_SUPPORT |
| 37 | else ifeq ($(strip $(TARGET_PLATFORM)), mt2635) |
| 38 | $(warning ################# TARGET_PLATFORM_MT2635) |
| 39 | LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2635 \ |
| 40 | -DMD_90_SUPPORT |
| 41 | endif |
| 42 | |
| 43 | |
| 44 | LOCAL_PATH = . |
| 45 | |
| 46 | LOCAL_C_INCLUDES = |
| 47 | |
| 48 | LOCAL_LIBS := |
| 49 | |
| 50 | EXECUTABLE = ping6_netid ping_netid |
| 51 | |
| 52 | SRCS_PING = ping.c ping_common.c |
| 53 | SRCS_PING6 = ping6.c ping_common.c |
| 54 | |
| 55 | OBJS = $(SRCS_PING:.c=.o) |
| 56 | OBJS6 = $(SRCS_PING6:.c=.o) |
| 57 | |
| 58 | all: $(EXECUTABLE) |
| 59 | ping_netid: $(OBJS) |
| 60 | $(CC) $(OBJS) $(LDFLAGS) $(INC) -o $@ |
| 61 | ping6_netid: $(OBJS6) |
| 62 | $(CC) $(OBJS6) $(LDFLAGS) $(INC) -o $@ |
| 63 | %.o:%.c |
| 64 | $(CC) $(INC) $(LDFLAGS) -o $@ -c $< |
| 65 | clean: |
| 66 | rm -rf $(EXECUTABLE) $(OBJS) |