1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- APP := demo
- FFMPEG_LDFLAGS := -L../thirdparties/android/lib -lavutil -lswscale -lavcodec -lgcc
- CFLAGS := $(CFLAGS_COMMON) -I../tinySAK/src -I../tinyNET/src -I../tinySMS/include -I../tinyHTTP/include -I../tinySDP/include -I../tinyDAV/include -I../tinyMEDIA/include -I../tinySIP/include
- LDFLAGS := $(LDFLAGS_COMMON) -Wl,-Bsymbolic,--whole-archive -Wl,--entry=main -lm $(FFMPEG_LDFLAGS) -ltinySAK -ltinyNET -ltinyHTTP -ltinyIPSec -ltinySMS -ltinySDP -ltinyMEDIA -ltinyDAV -ltinySIP
- all: $(APP)
- OBJS = \
- cmd.o \
- common.o \
- dssl.o \
- invite.o \
- main.o \
- message.o \
- options.o \
- publish.o \
- register.o \
- subscribe.o
- $(APP): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $^
- %.o: %.c
- $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
-
- install: $(APP)
- $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(EXEC_DIR)/$(APP)
- $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(EXEC_DIR)/$(APP)
- ifneq ($(SN), )
- $(ANDROID_SDK_ROOT)/tools/adb push $(SN) $(EXEC_DIR)
- $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(EXEC_DIR)/$(SN)
- endif
- run:
- $(ANDROID_SDK_ROOT)/tools/adb shell $(EXEC_DIR)/$(APP)
- #dbg:
- # $(MAKE) $(MAKEFILE) DEBUG="-g -DDEBUG"
- # $(MAKE) $(MAKEFILE) install
-
- clean:
- @rm -f $(OBJS) $(APP)
|