6 INC_COMMON = -I./include \
8 -I/usr/include/system \
10 -I/usr/include/ecore-1 \
11 -I/usr/include/evas-1 \
12 -I/usr/include/eina-1 \
13 -I/usr/include/eina-1/eina \
14 -I/usr/include/elementary-1 \
15 -I/usr/include/eet-1 \
16 -I/usr/include/edje-1 \
17 -I/usr/include/efreet-1 \
18 -I/usr/include/ethumb-1 \
19 -I/usr/include/e_dbus-1 \
20 -I/usr/include/dbus-1.0 \
21 -I/usr/lib/dbus-1.0/include
22 INC_TIZEN = $(INC_COMMON) #-I/usr/include/vconf -I/usr/include/pixman-1
23 INC_OSP = $(INC_COMMON) -I/usr/include/osp
25 COMMON_SRCS = ./helper/libdaprobe.c \
28 ./helper/dacollection.c \
29 ./helper/dacapture.c \
30 ./probe_memory/libdamemalloc.c \
31 ./probe_memory/libdamemmanage.c \
32 ./custom_chart/da_chart.c \
33 ./probe_socket/libdasocket.c \
34 ./probe_event/da_event.c \
35 ./probe_event/keytouch.c \
36 ./probe_third/libdaemon.c \
37 ./probe_thread/libdathread.c \
38 ./probe_thread/libdasync.c \
39 ./probe_userfunc/libdauserfunc.c \
40 ./probe_file/da_io_posix.c \
41 ./probe_file/da_io_stdc.c
43 TIZEN_SRCS =$(COMMON_SRCS) \
44 ./helper/addr-capi.c \
45 ./probe_tizenapi/tizen_appfw.c \
46 ./probe_ui/tizen_capture.c
48 OSP_SRCS = $(COMMON_SRCS) \
49 ./helper/addr-tizen.c \
50 ./probe_memory/libdanew.cpp \
51 ./probe_badaapi/bada_file.cpp \
52 ./probe_badaapi/bada_thread.cpp \
53 ./probe_badaapi/bada_lifecycle.cpp \
54 ./probe_badaapi/bada_sync.cpp \
55 ./probe_badaapi/osp_controls.cpp \
56 ./probe_badaapi/osp_constructor.cpp \
57 ./probe_event/gesture.cpp \
58 ./probe_ui/osp_capture.cpp \
59 ./probe_ui/osp_scenemanager.cpp \
60 ./probe_ui/osp_frameani.cpp \
61 ./probe_ui/osp_display.cpp
63 DUMMY_SRCS = ./custom_chart/da_chart_dummy.c
65 TIZEN_TARGET = da_probe_tizen.so
66 OSP_TARGET = da_probe_osp.so
67 DUMMY_TARGET = libdaprobe.so
69 FLAGS = -D_GNU_SOURCE -fPIC -shared -Wall -funwind-tables -fomit-frame-pointer -Xlinker --no-undefined
72 LIBDIR_TIZEN = $(LIBDIR_COMMON)
73 LIBDIR_OSP = $(LIBDIR_COMMON) -L/usr/lib/osp
75 COMMON_LDFLAGS = -ldl -lpthread -lrt -lecore -levas -lecore_input -leina -lecore_x -lcapi-system-runtime-info -lcapi-appfw-application -lX11 -lXext
76 TIZEN_LDFLAGS = $(COMMON_LDFLAGS)
77 OSP_LDFLAGS = $(COMMON_LDFLAGS) -lstdc++ -losp-uifw -losp-appfw
80 all: $(TIZEN_TARGET) $(OSP_TARGET) $(DUMMY_TARGET)
81 tizen: $(TIZEN_TARGET)
83 dummy: $(DUMMY_TARGET)
85 $(TIZEN_TARGET): $(TIZEN_SRCS)
86 $(CC) $(INC_TIZEN) $(FLAGS) $(LIBDIR_TIZEN) -o $@ $(TIZEN_SRCS) $(TIZEN_LDFLAGS)
88 $(OSP_TARGET): $(OSP_SRCS)
89 $(CC) $(INC_OSP) $(FLAGS) $(LIBDIR_OSP) -o $@ $(OSP_SRCS) $(OSP_LDFLAGS)
91 $(DUMMY_TARGET): $(DUMMY_SRCS)
92 $(CC) $(INC_OSP) $(FLAGS) -o $@ $(DUMMY_SRCS) $(DUMMY_LDFLAGS)
96 [ -d "$(DESTDIR)/$(INSTALLDIR)" ] || mkdir -p $(DESTDIR)/$(INSTALLDIR)
97 install $(OSP_TARGET) $(DUMMY_TARGET) $(DESTDIR)/$(INSTALLDIR)/