~ubuntu-branches/ubuntu/trusty/sysprof/trusty

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Ritesh Raj Sarraf
  • Date: 2011-06-13 23:05:39 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110613230539-426qhsc3k996edou
Tags: 1.1.6-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SUBDIRS = $(MODULE_SUBDIR)
2
 
DIST_SUBDIRS = module
3
 
 
4
 
bin_PROGRAMS = sysprof
5
 
pkgdata_DATA = sysprof.glade sysprof-icon.png
6
 
 
7
 
sysprof_SOURCES =               \
8
 
        binfile.h               \
9
 
        binfile.c               \
10
 
        process.h               \
11
 
        process.c               \
12
 
        profile.h               \
13
 
        profile.c               \
14
 
        sfile.h                 \
15
 
        sfile.c                 \
16
 
        stackstash.h            \
17
 
        stackstash.c            \
18
 
        module/sysprof-module.h \
19
 
        sysprof.c               \
20
 
        treeviewutils.h         \
21
 
        treeviewutils.c         \
22
 
        watch.h                 \
23
 
        watch.c
24
 
 
25
 
sysprof_LDADD = $(DEP_LIBS)
26
 
 
27
 
INCLUDES =                                         \
28
 
        $(DEP_CFLAGS)                              \
29
 
        -DDATADIR=\"$(pkgdatadir)\"                \
30
 
        -DPIXMAPDIR=\"$(datadir)/pixmaps\"
31
 
 
32
 
#       memprof.desktop         
33
 
#       memprof.spec.in
34
 
 
35
 
EXTRA_DIST =                    \
36
 
        sysprof.glade           \
37
 
        sysprof-icon.png        \
38
 
        module/sysprof-module.c \
39
 
        module/sysprof-module.h \
40
 
        module/Makefile
 
1
#SUBDIRS = $(MODULE_SUBDIR)
 
2
#DIST_SUBDIRS = module
 
3
 
 
4
bin_PROGRAMS = sysprof-cli
 
5
 
 
6
if BUILD_GUI
 
7
bin_PROGRAMS += sysprof 
 
8
endif
 
9
 
 
10
SYSPROF_CORE =                                  \
 
11
        binfile.h                               \
 
12
        binfile.c                               \
 
13
        collector.c                             \
 
14
        collector.h                             \
 
15
        demangle.c                              \
 
16
        elfparser.c                             \
 
17
        elfparser.h                             \
 
18
        profile.h                               \
 
19
        profile.c                               \
 
20
        sfile.h                                 \
 
21
        sfile.c                                 \
 
22
        sformat.h                               \
 
23
        sformat.c                               \
 
24
        stackstash.h                            \
 
25
        stackstash.c                            \
 
26
        tracker.h                               \
 
27
        tracker.c                               \
 
28
        unwind.h                                \
 
29
        unwind.c                                \
 
30
        watch.h                                 \
 
31
        watch.c                                 \
 
32
                                                \
 
33
        perf_counter.h                          \
 
34
        util.h
 
35
 
 
36
#       module/sysprof-module.h                 
 
37
 
 
38
#
 
39
# GUI version
 
40
#
 
41
if BUILD_GUI
 
42
 
 
43
sysprof_SOURCES =                               \
 
44
        $(SYSPROF_CORE)                         \
 
45
        footreestore.c                          \
 
46
        footreestore.h                          \
 
47
        footreedatalist.h                       \
 
48
        footreedatalist.c                       \
 
49
        treeviewutils.h                         \
 
50
        treeviewutils.c                         \
 
51
        sysprof.c
 
52
 
 
53
sysprof_CPPFLAGS =                              \
 
54
        $(GUI_DEP_CFLAGS)                       \
 
55
        -DDATADIR=\"$(pkgdatadir)\"             \
 
56
        -DPIXMAPDIR=\"$(pixmapsdir)\"
 
57
 
 
58
sysprof_LDADD = $(GUI_DEP_LIBS)
 
59
 
 
60
endif
41
61
 
42
62
pixmapsdir = $(datadir)/pixmaps
43
 
pixmaps_DATA = sysprof-icon.png
44
 
 
45
 
insert-module:
46
 
        /sbin/modprobe -r sysprof-module
47
 
        /sbin/modprobe sysprof-module
 
63
 
 
64
dist_pkgdata_DATA = sysprof.glade
 
65
dist_pixmaps_DATA = sysprof-icon-16.png sysprof-icon-24.png sysprof-icon-32.png sysprof-icon-48.png
 
66
 
 
67
#
 
68
# Command line version
 
69
#
 
70
 
 
71
sysprof_cli_SOURCES =                           \
 
72
        $(SYSPROF_CORE)                         \
 
73
        signal-handler.h                        \
 
74
        signal-handler.c                        \
 
75
        sysprof-cli.c
 
76
 
 
77
sysprof_cli_CPPFLAGS =                          \
 
78
        $(CORE_DEP_CFLAGS)
 
79
 
 
80
sysprof_cli_LDADD = $(CORE_DEP_LIBS)
 
81
 
 
82
#
 
83
# Module stuff
 
84
#  
 
85
 
 
86
#EXTRA_DIST =                                   \
 
87
#       module/sysprof-module.c                 \
 
88
#       module/sysprof-module.h                 \
 
89
#       module/Makefile
 
90
 
 
91
#insert-module:
 
92
#       /sbin/modprobe -r sysprof-module
 
93
#       /sbin/modprobe sysprof-module
 
94
 
 
95
 
96
# Test programs
 
97
#
 
98
noinst_PROGRAMS = testelf testunwind
 
99
 
 
100
# testunwind
 
101
testunwind_SOURCES =    \
 
102
        testunwind.c    \
 
103
        demangle.c      \
 
104
        elfparser.c     \
 
105
        elfparser.h     \
 
106
        unwind.c        \
 
107
        unwind.h
 
108
testunwind_CPPFLAGS = $(CORE_DEP_CFLAGS)
 
109
testunwind_LDADD = $(CORE_DEP_LIBS)
 
110
 
 
111
# testelf
 
112
testelf_SOURCES =       \
 
113
        testelf.c       \
 
114
        demangle.c      \
 
115
        elfparser.c     \
 
116
        elfparser.h
 
117
 
 
118
testelf_CPPFLAGS = $(CORE_DEP_CFLAGS)
 
119
testelf_LDADD = $(CORE_DEP_LIBS)