Update autogen.sh and comment out --enable-compile-warnings
[memprof.git] / Makefile.am
blob3cb4fedd99af81aa0768248ee807d5940923ef7e
1 SUBDIRS = po
3 bin_PROGRAMS = memprof
4 noinst_PROGRAMS = testmemprof
5 pkgdata_DATA = memprof.glade leak.xpm leak.png memprof.png
7 pkglib_LTLIBRARIES = libmemintercept.la libspeedintercept.la
9 memprof_SOURCES =               \
10         gui.h                   \
11         inode.c                 \
12         leakdetect.c            \
13         leakdetect.h            \
14         main.c                  \
15         memprof.h               \
16         process.c               \
17         process.h               \
18         profile.c               \
19         profile.h               \
20         server.c                \
21         server.h                \
22         stackstash.c            \
23         stackstash.h            \
24         treeviewutils.c         \
25         treeviewutils.h         \
26         tree.c                  \
27         binfile.h               \
28         binfile.c               \
29         elfparser.h             \
30         elfparser.c             \
31         binparser.h             \
32         binparser.c             \
33         demangle.c
35 memprof_LDADD = $(MEMPROF_LIBS)
36 memprof_LDFLAGS = -export-dynamic
38 intercept_sources =             \
39         intercept.c             \
40         intercept.h             \
41         memintercept-utils.c    \
42         memintercept-utils.h    \
43         stack-frame.c           \
44         stack-frame.h
47 libmemintercept_la_SOURCES =    \
48         $(intercept_sources)    \
49         memintercept.c          \
50         memintercept.h  
52 libmemintercept_la_LDFLAGS = -module -avoid-version
53 libmemintercept_la_LIBADD = -ldl
55 libspeedintercept_la_SOURCES =  \
56         $(intercept_sources)    \
57         mi-perfctr.c            \
58         mi-perfctr.h            \
59         perfctr.h               \
60         speedintercept.c
62 libspeedintercept_la_LDFLAGS = -module -avoid-version
63 libspeedintercept_la_LIBADD = -ldl
65 INCLUDES =                                         \
66         $(MEMPROF_CFLAGS)                          \
67         -DDATADIR=\"$(pkgdatadir)\"                \
68         -DPKGLIBDIR=\"$(pkglibdir)\"               \
69         -DLOCALEDIR=\""$(datadir)/locale"\"
71 EXTRA_DIST =                    \
72         memprof.desktop         \
73         leak.png                \
74         leak.xpm                \
75         memprof.glade           \
76         memprof.spec.in         \
77         memprof.png             \
78         intltool-extract.in     \
79         intltool-merge.in       \
80         intltool-update.in      \
81         $(schema_DATA)
83 Developmentdir = $(datadir)/applications
84 Development_DATA = memprof.desktop
86 pixmapsdir = $(datadir)/pixmaps
87 pixmaps_DATA = memprof.png
89 DISTCLEANFILES =                \
90         intltool-extract        \
91         intltool-merge          \
92         intltool-update
94 install-exec-hook:
95         cd $(DESTDIR)$(bindir) && ln -sf memprof speedprof
97 .PHONY: copyrights
99 copyrights:
100         FILES="$(memprof_SOURCES) $(libmemintercept_la_SOURCES)";         \
101         for i in $$FILES ; do                                             \
102            mv $$i $$i.bak;                                                \
103            cat copyright-header > $$i;                                    \
104            if grep "/\*====\*/" $$i.bak ; then                            \
105              perl -ne 'print if m!/\*====\*/!..0' $$i.bak >> $$i;         \
106            else                                                           \
107              echo "/*====*/" >> $$      i;                                \
108              cat $$i.bak >> $$i;                                          \
109            fi;                                                            \
110         done
112 dist-hook: memprof.spec
113         if grep '^- Version @VERSION@' $(srcdir)/memprof.spec.in ; then : ; else \
114            perl -ni.bak -e \
115               'print; if (/^%changelog/) { chomp ($$date = `date +"%a %b %d %Y"`); print "* $$date Owen Taylor <otaylor\@redhat.com>\n- Version @VERSION@\n\n"; }' \
116               $(srcdir)/memprof.spec.in ; \
117            ( CONFIG_FILES=memprof.spec CONFIG_HEADERS= $(SHELL) ./config.status ) ; \
118            cp -p $(srcdir)/memprof.spec.in $(distdir) ; \
119         fi
120         cp memprof.spec $(distdir)