XCOMM vim: filetype=make
XCOMM
XCOMM Copyright (c) 1999, 2000, 2001, 2002 Seth Kingsley.  All rights reserved.
XCOMM 
XCOMM Redistribution and use in source and binary forms, with or without
XCOMM modification, are permitted provided that the following conditions
XCOMM are met:
XCOMM 1. Redistributions of source code must retain the above copyright
XCOMM    notice, this list of conditions and the following disclaimer.
XCOMM 2. Redistributions in binary form must reproduce the above copyright
XCOMM    notice, this list of conditions and the following disclaimer in the
XCOMM    documentation and/or other materials provided with the distribution.
XCOMM 3. All advertising materials mentioning features or use of this software
XCOMM    must display the following acknowledgment:
XCOMM    This product includes software developed by Seth Kingsley and
XCOMM    contributors.
XCOMM 4. Neither the author's name, nor any of the contributors names may be
XCOMM    used to endorse or promote products derived from this software without
XCOMM    specific prior written permission.
XCOMM 
XCOMM THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
XCOMM IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
XCOMM OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
XCOMM IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
XCOMM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
XCOMM NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
XCOMM DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
XCOMM THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
XCOMM (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
XCOMM THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
XCOMM
XCOMM $Id: Imakefile,v 1.4 2002/10/27 00:28:36 sethk Exp $

ESD_CONFIG = esd-config

###################################################################
# Changes below this line should be sent to sethk@meowfishies.com.

#if HasGcc
CCOPTIONS = -Werror -Wall
#endif /* if HasGcc */

GDB = gdb
FIG2DEV = fig2dev
F2DFLAGS = -S 4 -b 12

.if exists(DEBUG)
CDEBUGFLAGS+= -g
DEFINES+= -DDEBUG
.else
DEFINES+= -DNDEBUG
.endif

#ifdef BuildInstallHtmlManPage
#undef BuildInstallHtmlManPage
#endif /* BuildInstallHtmlManPage */
#define BuildInstallHtmlManPage(a, b, c)    /**/

ESD_LIBS!= esd-config --libs
ESD_CFLAGS!= esd-config --cflags

INCLUDES+= $(ESD_CFLAGS)
SYS_LIBRARIES = $(XTOOLLIB) $(XTRAPLIB) $(XMULIBONLY)
EXTRA_LIBRARIES = $(ESD_LIBS)
SingleProgramTarget(xbell, xbell.o, , $(XTOOLLIB))
AllTarget(xbell)
SimpleProgramTarget(xbelld)
InstallAppDefaults(XBellD)

run: xbelld
	./$>

.if exists(DEBUG)
debug: xbelld
	${GDB} xbelld

.endif
	
block.png: block.fig
	$(FIG2DEV) -L png $(F2DFLAGS) $> $@

block.eps: block.fig
	$(FIG2DEV) -L eps $(F2DFLAGS) $> $@
	
