diff options
author | bossiel <bossiel@yahoo.fr> | 2011-08-10 22:59:15 +0000 |
---|---|---|
committer | bossiel <bossiel@yahoo.fr> | 2011-08-10 22:59:15 +0000 |
commit | 1ebf5a5fcda0c9154e22ed02404fd46525a7fd9f (patch) | |
tree | 4b6214a7142ab1035cb0e47444e88af38e712421 /tinySMS/droid-makefile | |
download | doubango-1.0.zip doubango-1.0.tar.gz |
Move deprecated v1.0 from trunk to branches1.0
Diffstat (limited to 'tinySMS/droid-makefile')
-rw-r--r-- | tinySMS/droid-makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tinySMS/droid-makefile b/tinySMS/droid-makefile new file mode 100644 index 0000000..c6f9af4 --- /dev/null +++ b/tinySMS/droid-makefile @@ -0,0 +1,41 @@ +APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I./include
+LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH)
+
+all: $(APP)
+
+OBJS = \
+ src/tsms.o\
+ src/tsms_address.o\
+ src/tsms_common.o\
+ src/tsms_packing.o
+
+ ### rpdu
+OBJS += src/rpdu/tsms_rpdu.o
+
+ ### tpdu
+OBJS += src/tpdu/tsms_tpdu_command.o\
+ src/tpdu/tsms_tpdu_deliver.o\
+ src/tpdu/tsms_tpdu_report.o\
+ src/tpdu/tsms_tpdu_status_report.o\
+ src/tpdu/tsms_tpdu_submit.o
+
+
+$(APP): $(OBJS)
+ifeq ($(EXT), a)
+ $(AR) rcs $@ $^
+else
+ $(CC) $(LDFLAGS) -o $@ $^
+endif
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb remount
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP)
\ No newline at end of file |