Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
150 changed files
with
15,728 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
*~ | ||
mms-engine/mms-engine.pro.user | ||
mms-engine/build | ||
mms-lib/mms-lib.pro.user | ||
mms-lib/build | ||
mms-lib/test/coverage/full.gcov | ||
mms-lib/test/coverage/mms-lib.gcov | ||
mms-lib/test/coverage/results | ||
mms-lib/test/mms_codec/build | ||
mms-lib/test/mms_lib_test.ncb | ||
mms-lib/test/mms_lib_test.opt | ||
mms-lib/test/read_report/build | ||
mms-lib/test/retrieve/build | ||
mms-lib/test/retrieve_cancel/build | ||
mms-ofono/mms-ofono.pro.user | ||
mms-ofono/build | ||
mms-handler-dbus/mms-handler-dbus.pro.user | ||
mms-handler-dbus/build | ||
mms-handler-dbus/test/mms_handler_dbus_server/build | ||
mms-handler-dbus/test/mms_handler_dbus_server/test_mms_handler_dbus_server.pro.user | ||
mms-handler-dbus/test/mms_handler_dbus_client/build | ||
mms-dump/build | ||
mms-dump/mms_dump.ncb | ||
mms-dump/mms_dump.opt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
MMS engine. | ||
|
||
Copyright (C) 2013-2014 Jolla Ltd. | ||
Copyright (C) 2010-2011 Intel Corporation. | ||
|
||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License version 2 as | ||
published by the Free Software Foundation. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# -*- Mode: makefile -*- | ||
|
||
.PHONY: all debug release clean | ||
|
||
# Required packages | ||
PKGS = glib-2.0 libwspcodec | ||
LIB_PKGS = $(PKGS) | ||
|
||
# | ||
# Default target | ||
# | ||
|
||
all: debug release | ||
|
||
# | ||
# Sources | ||
# | ||
|
||
SRC = mms-dump.c | ||
|
||
# | ||
# Directories | ||
# | ||
|
||
SRC_DIR = . | ||
BUILD_DIR = build | ||
DEBUG_BUILD_DIR = $(BUILD_DIR)/debug | ||
RELEASE_BUILD_DIR = $(BUILD_DIR)/release | ||
|
||
# | ||
# Tools and flags | ||
# | ||
|
||
CC = $(CROSS_COMPILE)gcc | ||
LD = $(CC) | ||
DEBUG_FLAGS = -g | ||
RELEASE_FLAGS = -O2 | ||
DEBUG_DEFS = -DDEBUG | ||
RELEASE_DEFS = | ||
WARNINGS = -Wall | ||
CFLAGS = $(shell pkg-config --cflags $(PKGS)) -MMD | ||
LIBS = $(shell pkg-config --libs $(LIB_PKGS)) | ||
|
||
DEBUG_CFLAGS = $(WARNINGS) $(DEBUG_FLAGS) $(DEBUG_DEFS) $(CFLAGS) | ||
RELEASE_CFLAGS = $(WARNINGS) $(RELEASE_FLAGS) $(RELEASE_DEFS) $(CFLAGS) | ||
DEBUG_LIBS = $(LIBS) | ||
RELEASE_LIBS = $(LIBS) | ||
|
||
# | ||
# Files | ||
# | ||
|
||
DEBUG_OBJS = $(SRC:%.c=$(DEBUG_BUILD_DIR)/%.o) | ||
RELEASE_OBJS = $(SRC:%.c=$(RELEASE_BUILD_DIR)/%.o) | ||
|
||
# | ||
# Dependencies | ||
# | ||
|
||
DEBUG_EXE_DEPS = $(DEBUG_BUILD_DIR) | ||
RELEASE_EXE_DEPS = $(RELEASE_BUILD_DIR) | ||
DEPS = $(DEBUG_OBJS:%.o=%.d) $(RELEASE_OBJS:%.o=%.d) | ||
ifneq ($(MAKECMDGOALS),clean) | ||
ifneq ($(strip $(DEPS)),) | ||
-include $(DEPS) | ||
endif | ||
endif | ||
|
||
# | ||
# Rules | ||
# | ||
|
||
EXE = mms-dump | ||
DEBUG_EXE = $(DEBUG_BUILD_DIR)/$(EXE) | ||
RELEASE_EXE = $(RELEASE_BUILD_DIR)/$(EXE) | ||
|
||
debug: $(DEBUG_EXE) | ||
|
||
release: $(RELEASE_EXE) | ||
|
||
clean: | ||
rm -fr $(BUILD_DIR) $(SRC_DIR)/*~ | ||
|
||
$(DEBUG_BUILD_DIR): | ||
mkdir -p $@ | ||
|
||
$(RELEASE_BUILD_DIR): | ||
mkdir -p $@ | ||
|
||
$(DEBUG_BUILD_DIR)/%.o : $(SRC_DIR)/%.c | ||
$(CC) -c $(DEBUG_CFLAGS) -MT"$@" -MF"$(@:%.o=%.d)" $< -o $@ | ||
|
||
$(RELEASE_BUILD_DIR)/%.o : $(SRC_DIR)/%.c | ||
$(CC) -c $(RELEASE_CFLAGS) -MT"$@" -MF"$(@:%.o=%.d)" $< -o $@ | ||
|
||
$(DEBUG_EXE): $(DEBUG_EXE_DEPS) $(DEBUG_OBJS) | ||
$(LD) $(DEBUG_FLAGS) $(DEBUG_OBJS) $(DEBUG_LIBS) -o $@ | ||
|
||
$(RELEASE_EXE): $(RELEASE_EXE_DEPS) $(RELEASE_OBJS) | ||
$(LD) $(RELEASE_FLAGS) $(RELEASE_OBJS) $(RELEASE_LIBS) -o $@ | ||
strip $@ |
Oops, something went wrong.