/**/#
/**/#  This Imakefile makes the following programs:
/**/#
/**/#    heartsd:      hearts dealer daemon
/**/#    hearts_dist:  heartsd spawner
/**/#    hearts:       curses/tty interface
/**/#    xmhearts:     X11/Motif hearts interface
/**/#    xawhearts:    X11/Xaw hearts interface
/**/#

SRCS1 = client.c hearts.c select.c connect.c sockio.c start_dist.c
OBJS1 = client.o hearts.o select.o connect.o sockio.o start_dist.o
SRCS2 = xmclient.c hearts.c select.c connect.c sockio.c start_dist.c gfx.c
OBJS2 = xmclient.o hearts.o select.o connect.o sockio.o start_dist.o gfx.o
SRCS3 = xawclient.c hearts.c select.c connect.c sockio.c start_dist.c gfx.c
OBJS3 = xawclient.o hearts.o select.o connect.o sockio.o start_dist.o gfx.o
SRCS4 = heartsd.c sockio.c
OBJS4 = heartsd.o sockio.o
SRCS5 = hearts_dist.c opensock.c sockio.c
OBJS5 = hearts_dist.o opensock.o sockio.o

/**/#
/**/# Uncomment this if you don't have a Motif build environment
/**/#
/* #define NO_MOTIF */

#ifdef NO_MOTIF
PROGRAMS = heartsd hearts_dist hearts xawhearts
#else
PROGRAMS = heartsd hearts_dist hearts xawhearts xmhearts
#ifndef XMLIB
XMLIB = -lXm $(XTOOLLIB) $(XLIB) 
#endif
#endif

CURSES_LIBRARIES = -lncurses
XMLOCAL_LIBRARIES = $(XMLIB)
XAWLOCAL_LIBRARIES = XawClientLibs

ComplexProgramTarget_1(hearts, $(CURSES_LIBRARIES), )
ComplexProgramTarget_2(xmhearts, $(XMLOCAL_LIBRARIES), $(SYSLIBS))
ComplexProgramTarget_3(xawhearts, $(XAWLOCAL_LIBRARIES), $(SYSLIBS))
SingleProgramTarget(heartsd, $(OBJS4), , )
SingleProgramTarget(hearts_dist, $(OBJS5), , )

CDEBUGFLAGS = 
