File: Makefile.am

package info (click to toggle)
sysprof 1.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,496 kB
  • sloc: ansic: 17,560; sh: 1,979; makefile: 94
file content (121 lines) | stat: -rw-r--r-- 1,982 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

#SUBDIRS = $(MODULE_SUBDIR)
#DIST_SUBDIRS = module

bin_PROGRAMS = sysprof-cli

if BUILD_GUI
bin_PROGRAMS += sysprof 
endif

SYSPROF_CORE =					\
	binfile.h				\
	binfile.c				\
	collector.c				\
	collector.h				\
	demangle.c				\
	elfparser.c				\
	elfparser.h				\
	profile.h				\
	profile.c				\
	sfile.h					\
	sfile.c					\
	sformat.h				\
	sformat.c				\
	stackstash.h				\
	stackstash.c				\
	tracker.h				\
	tracker.c				\
	unwind.h				\
	unwind.c				\
	watch.h					\
	watch.c					\
						\
	perf_counter.h				\
	util.h

#	module/sysprof-module.h			

#
# GUI version
#
if BUILD_GUI

sysprof_SOURCES =				\
	$(SYSPROF_CORE)				\
	footreestore.c				\
	footreestore.h				\
	footreedatalist.h			\
	footreedatalist.c			\
	treeviewutils.h				\
	treeviewutils.c				\
	sysprof.c

sysprof_CPPFLAGS =				\
	$(GUI_DEP_CFLAGS)			\
	-DDATADIR=\"$(pkgdatadir)\"		\
	-DPIXMAPDIR=\"$(pixmapsdir)\"

sysprof_LDADD = $(GUI_DEP_LIBS)

endif

pixmapsdir = $(datadir)/pixmaps

dist_pkgdata_DATA = sysprof.glade
dist_pixmaps_DATA = sysprof-icon-16.png sysprof-icon-24.png sysprof-icon-32.png sysprof-icon-48.png

#
# Command line version
#

sysprof_cli_SOURCES =				\
	$(SYSPROF_CORE)				\
	signal-handler.h			\
	signal-handler.c			\
	sysprof-cli.c

sysprof_cli_CPPFLAGS =				\
	$(CORE_DEP_CFLAGS)

sysprof_cli_LDADD = $(CORE_DEP_LIBS)

#
# Module stuff
#  

#EXTRA_DIST =					\
#	module/sysprof-module.c			\
#	module/sysprof-module.h			\
#	module/Makefile

#insert-module:
#	/sbin/modprobe -r sysprof-module
#	/sbin/modprobe sysprof-module

# 
# Test programs
#
noinst_PROGRAMS = testelf testunwind

# testunwind
testunwind_SOURCES =	\
	testunwind.c	\
	demangle.c	\
	elfparser.c	\
	elfparser.h	\
	unwind.c	\
	unwind.h
testunwind_CPPFLAGS = $(CORE_DEP_CFLAGS)
testunwind_LDADD = $(CORE_DEP_LIBS)

# testelf
testelf_SOURCES =	\
	testelf.c	\
	demangle.c	\
	elfparser.c	\
	elfparser.h

testelf_CPPFLAGS = $(CORE_DEP_CFLAGS)
testelf_LDADD = $(CORE_DEP_LIBS)