blob: 56d318bb37781dfbbc1a27feb1220c5c4244badc [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SHELL = /bin/sh
2RM = rm -f
3
4INC = -I$(top_srcdir)/../../../platform-libs/1.0-r0/platform/system/core/include
5LDFLAGS = -L. -lc_dns
6
7LOCAL_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))
17ifeq ($(strip $(RAT_CONFIG_C2K_SUPPORT)), yes)
18 LOCAL_CFLAGS += -DC2K_SUPPORT
19
20endif
21
22ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsds)
23 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 \
24 -DANDROID_MULTI_SIM \
25 -DMODE_DSDS
26endif
27
28ifeq ($(strip $(MTK_MULTI_SIM_SUPPORT)), dsss)
29 LOCAL_CFLAGS += -DMODE_DSSS
30endif
31
32$(warning ################# TARGET_PLATFORM: $(TARGET_PLATFORM))
33ifeq ($(strip $(TARGET_PLATFORM)), mt2731)
34$(warning ################# TARGET_PLATFORM_MT2731)
35 LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2731 \
36 -DMD_93_SUPPORT
37else ifeq ($(strip $(TARGET_PLATFORM)), mt2635)
38$(warning ################# TARGET_PLATFORM_MT2635)
39 LOCAL_CFLAGS += -DTARGET_PLATFORM_MT2635 \
40 -DMD_90_SUPPORT
41endif
42
43
44LOCAL_PATH = .
45
46LOCAL_C_INCLUDES =
47
48LOCAL_LIBS :=
49
50EXECUTABLE = ping6_netid ping_netid
51
52SRCS_PING = ping.c ping_common.c
53SRCS_PING6 = ping6.c ping_common.c
54
55OBJS = $(SRCS_PING:.c=.o)
56OBJS6 = $(SRCS_PING6:.c=.o)
57
58all: $(EXECUTABLE)
59ping_netid: $(OBJS)
60 $(CC) $(OBJS) $(LDFLAGS) $(INC) -o $@
61ping6_netid: $(OBJS6)
62 $(CC) $(OBJS6) $(LDFLAGS) $(INC) -o $@
63%.o:%.c
64 $(CC) $(INC) $(LDFLAGS) -o $@ -c $<
65clean:
66 rm -rf $(EXECUTABLE) $(OBJS)