## Process this file with automake to generate Makefile.in

# Makefile.am, liboop, copyright 1999 Dan Egnor
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License, version 2.1 or later.
# See the file COPYING for details.

AUTOMAKE_OPTIONS = foreign 1.7
lib_LTLIBRARIES = liboop.la @LIBOOP_LIBS@
EXTRA_LTLIBRARIES = liboop-adns.la liboop-glib2.la liboop-glib.la liboop-tcl.la liboop-www.la liboop-rl.la

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = liboop.pc liboop-glib2.pc

# versions updated as of 1.0
liboop_la_LDFLAGS = -version-info 4:1:0 # version:revision:age
liboop_la_SOURCES = sys.c select.c signal.c alloc.c read.c read-fd.c read-mem.c

liboop_adns_la_LDFLAGS = -version-info 3:0:0 -rpath '$(libdir)'
liboop_adns_la_LIBADD = $(ADNS_LIBS)
liboop_adns_la_SOURCES = adns.c

liboop_glib_la_LDFLAGS = -version-info 1:0:1 -rpath '$(libdir)'
liboop_glib_la_LIBADD = $(GLIB_LIBS)
liboop_glib_la_CFLAGS = $(GLIB_INCLUDES)
liboop_glib_la_SOURCES = glib.c

liboop_glib2_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_glib2_la_LIBADD = $(GLIB2_LIBS)
liboop_glib2_la_CFLAGS = $(GLIB2_CFLAGS)
liboop_glib2_la_SOURCES = glib.c

liboop_tcl_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_tcl_la_LIBADD = $(TCL_LIBS)
liboop_tcl_la_CFLAGS = $(TCL_INCLUDES)
liboop_tcl_la_SOURCES = tcl.c

liboop_www_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_www_la_LIBADD = $(WWW_LIBS)
liboop_www_la_CFLAGS = $(WWW_INCLUDES)
liboop_www_la_SOURCES = www.c

liboop_rl_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_rl_la_LIBADD = $(READLINE_LIBS)
liboop_rl_la_SOURCES = readline.c

include_HEADERS = oop.h oop-adns.h oop-glib.h oop-tcl.h oop-www.h oop-rl.h oop-read.h

noinst_PROGRAMS = test-oop

test_oop_SOURCES = test-oop.c
test_oop_CFLAGS = $(GLIB2_CFLAGS) $(GLIB_INCLUDES) $(TCL_INCLUDES) $(WWW_INCLUDES)
test_oop_LDADD = $(lib_LTLIBRARIES)

release: dist
	gzip -dc $(PACKAGE)-$(VERSION).tar.gz | bzip2 -9 \
	> $(PACKAGE)-$(VERSION).tar.bz2
	if test -d /ofb/www/download/liboop ; then \
	cd /ofb/www/download/liboop && \
	mv "$(shell pwd)/$(PACKAGE)-$(VERSION)".* . && \
	ln -sf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).tar.gz && \
	ln -sf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE).tar.bz2 ; \
	fi
	@echo '** NOW TAG THE CVS REPOSITORY! **'

install-exec-local:
	$(PROG_LDCONFIG) || true


syntax highlighted by Code2HTML, v. 0.9.1