#
# Copyright 1996-1997 by Frederic Lepied, France. <Frederic.Lepied@sugix.frmug.org>
#                                                                            
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is  hereby granted without fee, provided that
# the  above copyright   notice appear  in   all  copies and  that both  that
# copyright  notice   and   this  permission   notice  appear  in  supporting
# documentation, and that   the  name of  Frederic   Lepied not  be  used  in
# advertising or publicity pertaining to distribution of the software without
# specific,  written      prior  permission.     Frederic  Lepied   makes  no
# representations about the suitability of this software for any purpose.  It
# is provided "as is" without express or implied warranty.                   
#                                                                            
# FREDERIC  LEPIED DISCLAIMS ALL   WARRANTIES WITH REGARD  TO  THIS SOFTWARE,
# INCLUDING ALL IMPLIED   WARRANTIES OF MERCHANTABILITY  AND   FITNESS, IN NO
# EVENT  SHALL FREDERIC  LEPIED BE   LIABLE   FOR ANY  SPECIAL, INDIRECT   OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA  OR PROFITS, WHETHER  IN  AN ACTION OF  CONTRACT,  NEGLIGENCE OR OTHER
# TORTIOUS  ACTION, ARISING    OUT OF OR   IN  CONNECTION  WITH THE USE    OR
# PERFORMANCE OF THIS SOFTWARE.
#
# $Id: Imakefile,v 1.7 1997/06/14 19:11:49 fred Exp $

# must be kept in synch with version.c
VERSION = 1.2

DEPLIBS = $(DEPXILIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XILIB) $(XLIB)

OBJS = xinput.o feedback.o buttonmap.o setptr.o setmode.o list.o test.o version.o setint.o state.o
SRCS = xinput.c feedback.c buttonmap.c setptr.c setmode.c list.c test.c version.c setint.c state.c
HDRS = xinput.h
AUX  = xinput.man Imakefile README ChangeLog COPYRIGHT

ComplexProgramTarget(xinput)

distrib:
	@test -f setptr.c
	rm -rf xinput-$(VERSION) xinput-$(VERSION).tar.gz
	mkdir xinput-$(VERSION)
	ln $(AUX) $(HDRS) $(SRCS) xinput-$(VERSION)
	tar cvf xinput-$(VERSION).tar xinput-$(VERSION)
	gzip --best --verbose xinput-$(VERSION).tar

clean::
	@test -f setptr.c
	rm -rf xinput-$(VERSION) xinput-$(VERSION).tar.gz

# end of Imakefile
