blob: cfa16ca8921da60e0a2fd763a747928db5920a08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#Fixed point implementation
APP := lib$(PROJECT)_$(MARCH).$(EXT)
MY_DEFS :=
ifeq ($(LT),shared)
_LT=Bdynamic
else
_LT=Bstatic
endif
LIBS_3RD := -L$(OUTPUT)
INCLUDES_3RD :=
INCLUDES := $(INCLUDES_3RD)
CFLAGS := $(CFLAGS_LIB) $(MY_DEFS) $(INCLUDES) -fno-rtti -fno-exceptions
LDFLAGS := $(LDFLAGS_LIB) -L$(THIRDPARTIES_LIB) -L$(THIRDPARTIES_MARCH_LIB) $(FFMPEG_LDFLAGS) $(VPX_LDLAGS) $(WEBRTC_LDFLAGS) $(SPEEX_DSP_LDFLAGS) $(SPEEX_LDFLAGS) $(OPENCORE_ARM_LDFLAGS) $(BV16_LDFLAGS) $(ILBC_LDFLAGS) $(LIBGSM_LDFLAGS) $(G729_LDFLAGS) \
$(LIBSRTP_LDFLAGS) $(TLS_LDFLAGS) \
-Wl,-Bdynamic -lm -lstdc++ -lgcc -llog \
-Wl,-$(_LT)
all: $(APP)
OBJS = \
api.o \
cpu-features.o\
utils_wrap.o \
$(APP): $(OBJS)
ifeq ($(EXT), a)
$(AR) rcs $@ $^
else
$(CC) $(LDFLAGS) -o $@ $^
endif
%.o: %.c
$(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
%.o: %.cxx
$(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
install: $(APP)
cp -f $(APP) ../thirdparties/android/lib
shell:
$(ANDROID_SDK_ROOT)/tools/adb shell
run:
$(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP)
clean:
@rm -f $(OBJS) $(APP)
|