## Prefered emacs editing mode: -*- Makefile -*-
##
## Copyright (C) 2000 by Kevin L. Mitchell <klmitch@mit.edu>
##
## 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; either version 2 of the License, or
## (at your option) any later version.
##
## 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.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
##
## @(#)$Id: Makefile.am,v 1.3 2000/12/13 14:29:53 klmitch Exp $
##
## Process this file with automake to generate Makefile.in

AUTOMAKE_OPTIONS = foreign

lib_LTLIBRARIES = libsock.la
libsock_la_SOURCES = 
libsock_la_LIBADD = @SOCK_ET_OBJS@
libsock_la_DEPENDANCIES = @SOCK_ET_OBJS@
libsock_la_LDFLAGS = -version-info 1:0:0

pkginclude_HEADERS = sock.h timer.h

EXTRA_DIST = sock.h.top sock.h.bot sock_err.et \
	     timer.h.top timer.h.bot timer_err.et \
	     comp_et-sh.in COPYING INSTALL

SUFFIXES = .et .h

CLEANFILES = sock.h sock_err.c sock_err.h \
	     timer.h timer_err.c timer_err.h

.et.c .et.h: comp_et-sh
	$(SHELL) comp_et-sh --com-err=@COM_ERR@ --dir=$(top_builddir) $<

sock_err.c sock_err.h: sock_err.et
timer_err.c timer_err.h: timer_err.et

$(OBJECTS): sock.h timer.h

sock.h: $(srcdir)/sock.h.top sock_err.h $(srcdir)/sock.h.bot
	cat $(srcdir)/sock.h.top sock_err.h $(srcdir)/sock.h.bot > sock.h

timer.h: $(srcdir)/timer.h.top timer_err.h $(srcdir)/timer.h.bot
	cat $(srcdir)/timer.h.top timer_err.h $(srcdir)/timer.h.bot > timer.h

dist-hook:
	rm -f sock.h sock_err.c sock_err.h \
	      timer.h timer_err.c timer_err.h
