[REFACTOR] More modular Makefile
authorDmitry Bogatov <d.bogatov@samsung.com>
Wed, 30 Oct 2013 08:49:31 +0000 (12:49 +0400)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 30 Oct 2013 09:25:21 +0000 (09:25 +0000)
Reason: simplify control of included probes
by scripting tools (e.g just removing line with sed(1))

Change-Id: I3fdedc4e95a3b9681ad572b19db9f79e867dc6e7
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Makefile

index 77891ec..1e48317 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,24 +22,32 @@ INC_COMMON = -I./include \
 INC_CAPI = $(INC_COMMON) #-I/usr/include/vconf -I/usr/include/pixman-1
 INC_TIZEN = $(INC_COMMON) -I/usr/include/osp
 
-COMMON_SRCS =  ./helper/libdaprobe.c \
-                               ./helper/dahelper.c \
-                               ./helper/btsym.c \
-                               ./helper/dacollection.c \
-                               ./helper/dacapture.c \
-                               ./probe_memory/libdamemalloc.c \
-                               ./probe_memory/libdamemmanage.c \
-                               ./custom_chart/da_chart.c \
-                               ./probe_socket/libdasocket.c \
-                               ./probe_event/da_event.c \
-                               ./probe_event/keytouch.c \
-                               ./probe_event/orientation.c \
-                               ./probe_third/libdaemon.c \
-                               ./probe_thread/libdathread.c \
-                               ./probe_thread/libdasync.c \
-                               ./probe_userfunc/libdauserfunc.c \
-                               ./probe_file/da_io_posix.c \
-                               ./probe_file/da_io_stdc.c
+UTILITY_SRCS :=                                \
+       ./helper/libdaprobe.c           \
+       ./helper/dahelper.c             \
+       ./helper/btsym.c                \
+       ./helper/dacollection.c         \
+       ./helper/dacapture.c            \
+       ./custom_chart/da_chart.c       \
+
+
+PROBE_SRCS :=                                  \
+       ./probe_memory/libdamemalloc.c          \
+       ./probe_memory/libdamemmanage.c         \
+       ./probe_socket/libdasocket.c            \
+       ./probe_event/da_event.c                \
+       ./probe_event/keytouch.c                \
+       ./probe_event/orientation.c             \
+       ./probe_third/libdaemon.c               \
+       ./probe_thread/libdathread.c            \
+       ./probe_thread/libdasync.c              \
+       ./probe_userfunc/libdauserfunc.c        \
+       ./probe_file/da_io_posix.c              \
+       ./probe_file/da_io_stdc.c               \
+
+
+
+COMMON_SRCS := $(UTILITY_SRCS) $(PROBE_SRCS)
 
 CAPI_SRCS =$(COMMON_SRCS) \
                        ./helper/appfw-capi.c \