DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs

/* The next four things are probably the only things you might
 * need to change here.
 * However, there is "NUMBEROFCHOICES" in "defs.h"
 *  that determines how many multiple-choice offerings there are.
 *
 * UNCOMPRESS: put your favourite  uncompress command in here.
 *   I would have normally put zcat, or zcat, but this is better.
 *   If you don't have gzip... get it!
 *   If you still won't.. well then you'll have to change the line
 *     to something that will uncompress the file to stdout
 *   You'll also have to change the UNCOMPRESSEXT to .Z, or whatever's
 *   appropriate to you.
 *	DON'T FORGET the QUOTATION MARKS!
 * If you do not wish to have this option (although there's no reason not to)
 * you should completely remove the relavant defines from
 * CDEBUGFLAGS, below.
 */

UNCOMPRESS = gzip -d -c
UNCOMPRESSEXT = .gz
DICTLOCATION= /usr/local/lib/kanjidic.gz
MEMSET = 	/* change to the line below if you don't have memset */
/* MEMSET = -DNOMEMSET */ 





DICTDEFS = -DDICTLOCATION='"KDrill*dictfile:	 $(DICTLOCATION)"'
COMPRESSDEFS = -DUNCOMPRESS='"$(UNCOMPRESS)"' \
		-DUNCOMPRESSEXT='"$(UNCOMPRESSEXT)"'





/* 
 * I don't like putting <X11/...> for everything, so..
 */
INCLUDES = -I$(INCROOT)/X11

/*
 *  If you want to force things...
 * CDEBUGFLAGS = -g -ansi -pedantic
 * BINDIR = /usr/local/bin/X11
 */

EXTRA_DEFINES = $(MEMSET)

/*CDEBUGFLAGS = -g */

SRCS = main.c readfile.c game.c init.c widgets.c grades.c frequency.c
OBJS = main.o readfile.o game.o init.o widgets.o grades.o frequency.o

ComplexProgramTarget(kdrill)

SpecialObjectRule(readfile.o,, $(COMPRESSDEFS) )
SpecialObjectRule(init.o,, $(DICTDEFS) )

/*
 * MISCELLANEOUS NOTE:
 *   I have used lrand48, and srand48, in hopes of those being portable
 *   random number generators.
 *   If you don't have them, they are directly switchable with
 *   random() and srandom()
 *     look in "game.c" and "init.c"
 */
