File: Makefile.am

package info (click to toggle)
libcwd 1.0.4-1.1
  • links: PTS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 8,136 kB
  • ctags: 10,313
  • sloc: cpp: 23,354; sh: 9,798; ansic: 1,172; makefile: 852; exp: 234; awk: 11
file content (161 lines) | stat: -rw-r--r-- 5,669 bytes parent folder | download | duplicates (2)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
## Process this file with automake to generate Makefile.in

AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = @ACLOCAL_CWFLAGS@

SUBDIRS = include utils . tests testsuite cutee

EXTRA_DIST = LICENSE.QPL README.SVN README.threads README.FreeBSD README.openbsd README.solaris \
	README.cygwin README.mingw32 README.PCH nodebug.h depcomp libcwd.pc.in libcwd_r.pc.in \
	libcwd.lsm libcwd.spec valgrind.supp
DISTCLEANFILES = libcwd_r-@VERSION@.tar.gz stamp-h.in

VERSIONINFO=@VERSIONINFO@
CXXFLAGS = @CXXFLAGS@
PCHFLAGS = @PCHFLAGS@
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
DEFAULT_INCLUDES =

if ENABLETHREADING
LIBCWD_R = libcwd_r.la
else
LIBCWD_R =
endif
if ENABLENONTHREADING
LIBCWD = libcwd.la
else
LIBCWD =
endif

dist_pkgdata_DATA = libcwdrc
lib_LTLIBRARIES = $(LIBCWD) $(LIBCWD_R)

if ENABLENONTHREADING
libcwd_la_CXXFLAGS = $(PCHFLAGS) -DCWDEBUG
libcwd_la_SOURCES = \
	elfxx.cc \
	environ.cc \
	bfd.cc \
	debug.cc \
	debugmalloc.cc \
	private_allocator.cc \
	demangle3.cc \
	alloc_filter.cc \
	strerrno.cc \
	type_info.cc \
	function.cc \
	compilation_unit.cc
libcwd_la_LDFLAGS = -version-info $(VERSIONINFO) -no-undefined
libcwd_la_LIBADD = utils/libutils.la
endif

if ENABLETHREADING
libcwd_r_la_CXXFLAGS = $(PCHFLAGS) -DCWDEBUG -DLIBCWD_THREAD_SAFE -D_REENTRANT -pthread
libcwd_r_la_SOURCES = \
	elfxx.cc \
	environ.cc \
	bfd.cc \
	debug.cc \
	debugmalloc.cc \
	private_allocator.cc \
	demangle3.cc \
	alloc_filter.cc \
	strerrno.cc \
	type_info.cc \
	function.cc \
	compilation_unit.cc \
	threading.cc \
	wrapcnclpnts.cc
libcwd_r_la_LDFLAGS = -version-info $(VERSIONINFO) -no-undefined $(LIB_THREADS_SHARED)
libcwd_r_la_LIBADD = utils/libutils_r.la
endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcwd.pc libcwd_r.pc

$(pkgconfig_DATA): config.status

# --------------- Maintainer's Section

# Default installation directory of documentation and example-project.
DOCDESTDIR=$(DESTDIR)/usr/share/doc/libcwd

install-doc:
	test -e $(DOCDESTDIR) || mkdir -p $(DOCDESTDIR)
	cp -pr $(top_builddir)/documentation $(DOCDESTDIR)
	rm -f $(DOCDESTDIR)/Makefile $(DOCDESTDIR)/doxygen.config
	find $(DOCDESTDIR)/documentation -name .svn -print | xargs rm -rf
	find $(DOCDESTDIR)/documentation/tutorial \( -name 'core*' -o -name '*-bin' -o -name '*.o' \) -print | xargs rm -rf
	find $(DOCDESTDIR)/documentation -name '*.dot' -size 0 -print | xargs rm -f
	rm -f $(DOCDESTDIR)/documentation/tutorial/Makefile $(DOCDESTDIR)/documentation/styles/Makefile
	mkdir $(DOCDESTDIR)/example-project
	mkdir $(DOCDESTDIR)/example-project/m4
	if test -d $(srcdir)/example-project/.svn; then \
	  echo > $(DOCDESTDIR)/example-project/.files; \
	  for i in $$(cd $(srcdir)/example-project && svn stat --verbose --non-interactive | \
	          sed -re 's/.*[[:space:]]//' -e 's/^\.$$//' -e 's/debug\.h\.maintainer/debug.h/'); do \
	    if test -f $(srcdir)/example-project/$$i; then \
	      cp -p $(srcdir)/example-project/$$i $(DOCDESTDIR)/example-project/$$i; \
	      echo $$i >> $(DOCDESTDIR)/example-project/.files; \
	    fi \
	  done \
	elif test -r $(srcdir)/example-project/.files; then \
	  for i in $$(cat $(srcdir)/example-project/.files); do \
	    cp -p $(srcdir)/example-project/$$i $(DOCDESTDIR)/example-project/$$i; \
	  done; \
	  cp -p $(srcdir)/example-project/.files $(DOCDESTDIR)/example-project; \
	fi
	rm -f $(DOCDESTDIR)/example-project/debug.h.maintainer
	if test -e $(srcdir)/example-project/debug.h; then \
	  cp -p $(srcdir)/example-project/debug.h $(DOCDESTDIR)/example-project; \
	else \
	  echo "You need to configure with --enable-maintainer-mode and run 'make' before doing this."; \
	  exit 1; \
	fi

dist-hook: documentation
	chmod u+w $(distdir)/Makefile.in
	cat $(distdir)/Makefile.in | \
	  sed -e 's/^\(CONFIG_CLEAN_FILES =.*\) libcwd\.spec libcwd\.lsm\(.*\)/\1\2/' > $(distdir)/Makefile.in.new && \
	  mv $(distdir)/Makefile.in.new $(distdir)/Makefile.in
	$(MAKE) DOCDESTDIR=$(distdir) install-doc
	mkdir $(distdir)/debian
	if test -d $(srcdir)/debian/.svn; then \
	  echo > $(distdir)/debian/.files; \
	  for i in $$(cd $(srcdir)/debian && svn stat --verbose --non-interactive | sed -re 's/.*[[:space:]]//' -e 's/^\.$$//'); do \
	    if test -d $(srcdir)/debian/$$i; then \
	      mkdir $(distdir)/debian/$$i; \
	    fi; \
	    if test -f $(srcdir)/debian/$$i; then \
	      cp -p $(srcdir)/debian/$$i $(distdir)/debian/$$i; \
	      echo $$i >> $(distdir)/debian/.files; \
	    fi \
	  done \
	elif test -r $(srcdir)/debian/.files; then \
	  for i in $$(cat $(srcdir)/debian/.files); do \
	    cp -p $(srcdir)/debian/$$i $(distdir)/debian/$$i; \
	  done; \
	  cp -p $(srcdir)/debian/.files $(distdir)/debian; \
	fi
	chmod +x $(distdir)/install-sh

distclean-local:
	rm -rf rpm $(srcdir)/autom4te.cache
	if test ! -e $(top_builddir)/NEWS; then \
	  rm -rf documentation; \
	else \
	  find documentation/tutorial \( -name 'core*' -o -name '*-bin' -o -name '*.o' \) -print | xargs rm -rf; \
	fi
	if test -d example-project; then \
	  (cd example-project; rm -rf $(srcdir)/autom4te.cache .deps $(srcdir)/aclocal.m4 config.h $(srcdir)/config.h.in \
	   config.log config.status $(srcdir)/configure Makefile $(srcdir)/Makefile.in stamp-h1 program *.o); \
        fi
	cd $(srcdir) && dh_clean || true
	rm -f $(srcdir)/build-stamp

MAINTAINERCLEANFILES = $(srcdir)/aclocal.m4 $(srcdir)/config.h.in $(srcdir)/configure $(srcdir)/Makefile.in \
	$(srcdir)/install-sh $(srcdir)/missing $(srcdir)/mkinstalldirs $(srcdir)/config.guess $(srcdir)/config.sub \
	$(srcdir)/ltmain.sh $(srcdir)/stamp-h.in $(srcdir)/ChangeLog tags $(srcdir)/example-project/debug.h \
	$(srcdir)/depcomp troep*

@MAINTAINER_MODE_TRUE@include maintMakefile