4 noinst_PROGRAMS = testmemprof
5 pkgdata_DATA = memprof.glade leak.xpm leak.png memprof.png
7 pkglib_LTLIBRARIES = libmemintercept.la libspeedintercept.la
9 testmemprof_SOURCES = \
39 memprof_LDADD = $(MEMPROF_LIBS)
40 memprof_LDFLAGS = -export-dynamic
45 lib/memintercept-utils.c\
46 lib/memintercept-utils.h\
51 libmemintercept_la_SOURCES = \
52 $(intercept_sources) \
56 libmemintercept_la_LDFLAGS = -module -avoid-version
57 libmemintercept_la_LIBADD = -ldl
59 libspeedintercept_la_SOURCES = \
60 $(intercept_sources) \
66 libspeedintercept_la_LDFLAGS = -module -avoid-version
67 libspeedintercept_la_LIBADD = -ldl
72 -DDATADIR=\"$(pkgdatadir)\" \
73 -DPKGLIBDIR=\"$(pkglibdir)\" \
74 -DLOCALEDIR=\""$(datadir)/locale"\"
88 Developmentdir = $(datadir)/applications
89 Development_DATA = memprof.desktop
91 pixmapsdir = $(datadir)/pixmaps
92 pixmaps_DATA = memprof.png
100 cd $(DESTDIR)$(bindir) && ln -sf memprof speedprof
105 FILES="$(memprof_SOURCES) $(libmemintercept_la_SOURCES)"; \
106 for i in $$FILES ; do \
108 cat copyright-header > $$i; \
109 if grep "/\*====\*/" $$i.bak ; then \
110 perl -ne 'print if m!/\*====\*/!..0' $$i.bak >> $$i; \
112 echo "/*====*/" >> $$ i; \
113 cat $$i.bak >> $$i; \
117 dist-hook: memprof.spec
118 if grep '^- Version @VERSION@' $(srcdir)/memprof.spec.in ; then : ; else \
120 'print; if (/^%changelog/) { chomp ($$date = `date +"%a %b %d %Y"`); print "* $$date Holger Hans Peter Freyther <zecke+memprof\@secretlabs.de>\n- Version @VERSION@\n\n"; }' \
121 $(srcdir)/memprof.spec.in ; \
122 ( CONFIG_FILES=memprof.spec CONFIG_HEADERS= $(SHELL) ./config.status ) ; \
123 cp -p $(srcdir)/memprof.spec.in $(distdir) ; \
125 cp memprof.spec $(distdir)