/*========================================================================
 *
 * Name - Imakefile
 *
 * Version:	1.8
 *
 * ccsid:	@(#)Imakefile	1.8 - 7/6/92 10:52:09
 * from: 	../work/ccs/s.Imakefile
 * date: 	7/6/92 10:54:25
 *
 * Description: imake file to build xgrabsc.  Use simple.mak if you
 *              don't have imake.
 *
 *========================================================================
 */

OBJS1 = xgrabsc.o
OBJS2 = xgrab.o
PROGRAMS = xgrabsc xgrab

AllTarget($(PROGRAMS))

NormalProgramTarget(xgrabsc, $(OBJS1), , , $(XLIB))
NormalProgramTarget(xgrab, $(OBJS2), , , $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB))

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

xgrab.o:: xgrab_ad.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)
