4 # Author: Pekka Riikonen <priikone@silcnet.org>
6 # Copyright (C) 2008 Pekka Riikonen
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; version 2 of the License.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
18 RUNTIME_BASE_VERSION=@RUNTIME_BASE_VERSION@
19 RUNTIME_CURRENT=@RUNTIME_CURRENT@
20 RUNTIME_REVISION=@RUNTIME_REVISION@
21 RUNTIME_AGE=@RUNTIME_AGE@
30 LIBTOOL_OPTS= -release $(RUNTIME_BASE_VERSION) -rpath $(DESTDIR)$(libdir) \
31 -export-dynamic -no-undefined
33 LIBTOOL_OPTS= -release $(RUNTIME_BASE_VERSION) -rpath $(DESTDIR)$(libdir)
35 LIBTOOL_RUNTIME_VERSION = \
36 -version-info $(RUNTIME_CURRENT):$(RUNTIME_REVISION):$(RUNTIME_AGE)
39 LIBTOOL_RUNTIME_VERSION =
42 RUNTIME_LINK_LIBS=$(LIBS)
47 RUNTIME_LIB = libsrt.a
49 SUBDIRS += $(RUNTIME_DIRS)
51 CLEANFILES = $(RUNTIME_LIB)
52 DISTCLEANFILES = $(RUNTIME_LIB)
58 $(MAKE) remove $(RUNTIME_LIB)
61 -mkdir -p $(DESTDIR)$(libdir)
62 -$(LIBTOOL) $(INSTALL) libsrt.la $(DESTDIR)$(libdir)/
65 find $(RUNTIME_DIRS) -type f -name *.lo | xargs \
66 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \
67 $(RUNTIME_LINK_LIBS) \
68 $(LIBTOOL_RUNTIME_VERSION) \
69 $(LIBTOOL_OPTS) -o libsrt.la
71 pkgconfigdir = $(libdir)/pkgconfig
72 pkgconfig_DATA = srt.pc
74 EXTRA_DIST = srt.pc.in
77 # -mkdir -p $(docdir)/toolkit/
78 # -$(INSTALL_DATA) $(top_srcdir)/doc/toolkit/* $(docdir)/toolkit
79 # -$(INSTALL_DATA) $(top_srcdir)/lib/doc/*.gif $(docdir)/toolkit
80 # -cp -R $(top_srcdir)/tutorial $(docdir)