/*========================================================================
 *
 * Name - Imakefile
 *
 * Version:	1.15
 *
 * ccsid:	@(#)Imakefile	1.15 - 8/12/92 12:38:59
 * from: 	ccs/s.Imakefile
 * date: 	8/12/92 14:15:35
 *
 * Description: imake file to build xgrabsc.  Use simple.mak if you
 *              don't have imake.
 *
 *========================================================================
 */

PROGRAMS = xgrabsc xgrab
CDebugFlags = -O

/* you can specify many config.h options here if you don't want to
 * modify config.h.  E.g.,
 *   DEFINES= $(SIGNAL_DEFINES) -DNO_RLE_CHECKS
 */



SRCS1 = xgrabsc.c
OBJS1 = xgrabsc.o
ComplexProgramTarget_1(xgrabsc,$(XLIB),)


SRCS2 = xgrab.c
OBJS2 = xgrab.o
ComplexProgramTarget_2(xgrab,XawClientLibs,)

xgrabsc.o:: process.hc get.hc mem.hc convert.hc write.hc checkvm.h cmdopts.h \
  config.h

xgrab.o:: xgrab_ad.h config.h

xgrab_ad.h: XGrab.ad
	rm -f xgrab_ad.h
	sed -n '1,/! ====/p' XGrab.ad | sed -n -f ad2c.sed >xgrab_ad.h


InstallMultiple(xgrabsc xgrab,$(BINDIR))
InstallManPage(xgrabsc,$(MANDIR))
InstallManPage(xgrab,$(MANDIR))
InstallAppDefaults(XGrab)
