#if ProjectX > 4
XCOMM $XConsortium: Imakefile,v 1.12 93/12/29 20:01:47 rws Exp $
#endif

/* turn on one or more of the following */
#define BuildWithXTest		YES
#define BuildWithXTrap		NO
#define BuildWithXTestExt1	NO

/* make this YES if you normally use DragonDictate 1.01 */
/* make it NO if you normally use 1.01a or 2.0 */
#define OldDragonDictate	YES

#if BuildWithXTest
XTESTDEFS = -DXTEST
#ifdef NormalLibXTest /* test if pre-R6 config files */
XTESTGENLIB = $(XTESTLIB)
XTESTGENDEPLIB = $(DEPXTESTLIB)
#else
XTESTGENLIB = -lXtst
#endif
#endif
#if BuildWithXTrap
XTRAPDEFS = -DXTRAP
XTRAPGENLIB = -lXTrap $(XTOOLLIB)
XTRAPGENDEPLIB = $(DEPXTOOLLIB)
INCLUDES = -I$(INCDIR)
#endif
#if BuildWithXTestExt1
XTESTEXT1DEFS = -DXTESTEXT1
#endif
#if OldDragonDictate
DDDEFS = -DOLDDD
#endif

        DEFINES = $(XTESTDEFS) $(XTRAPDEFS) $(XTESTEXT1DEFS) $(DDDEFS)
        DEPLIBS = $(DEPXMULIB) $(XTESTDEPGENLIB) $(XTRAPDEPGENLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XMULIB) $(XTESTGENLIB) $(XTRAPGENLIB) $(XLIB)
  SYS_LIBRARIES = -lm

SimpleProgramTarget(a2x)

#ifdef InstallNamedProg
InstallNamedProg(DragonDictate,DragonDictate,$(BINDIR))
#endif

a2x.PS: a2x.ms
	$(TROFF) $(MSMACROS) a2x.ms > $@

clean::
	$(RM) a2x.PS
