# # Makefile.am # # Author: Pekka Riikonen # # Copyright (C) 2000 - 2008 Pekka Riikonen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign RUNTIME_BASE_VERSION=@RUNTIME_BASE_VERSION@ RUNTIME_CURRENT=@RUNTIME_CURRENT@ RUNTIME_REVISION=@RUNTIME_REVISION@ RUNTIME_AGE=@RUNTIME_AGE@ # SILC Library dirs RUNTIME_DIRS = \ contrib \ silcutil \ silchttp if SILC_ENABLE_SHARED if SILC_WIN32 LIBTOOL_OPTS= -release $(RUNTIME_BASE_VERSION) -rpath $(DESTDIR)$(libdir) \ -export-dynamic -no-undefined else LIBTOOL_OPTS= -release $(RUNTIME_BASE_VERSION) -rpath $(DESTDIR)$(libdir) endif LIBTOOL_RUNTIME_VERSION = \ -version-info $(RUNTIME_CURRENT):$(RUNTIME_REVISION):$(RUNTIME_AGE) else LIBTOOL_OPTS= LIBTOOL_RUNTIME_VERSION = endif if SILC_WIN32 RUNTIME_LINK_LIBS=$(LIBS) else RUNTIME_LINK_LIBS= endif RUNTIME_LIB = libsrt.a SUBDIRS = $(RUNTIME_DIRS) CLEANFILES = $(RUNTIME_LIB) DISTCLEANFILES = $(RUNTIME_LIB) remove: -rm -f $(CLEANFILES) all: $(MAKE) remove $(RUNTIME_LIB) install-exec-hook: -mkdir -p $(DESTDIR)$(libdir) -$(LIBTOOL) --mode=install $(INSTALL) libsrt.la $(DESTDIR)$(libdir)/ libsrt.a: find $(RUNTIME_DIRS) -type f -name *.lo | xargs \ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \ $(RUNTIME_LINK_LIBS) \ $(LIBTOOL_RUNTIME_VERSION) \ $(LIBTOOL_OPTS) -o libsrt.la pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = srt.pc EXTRA_DIST = srt.pc.in include $(top_srcdir)/Makefile.defines.in