DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs

/* The next five things are probably the only things you might
 * need to change here.
 *  However, there are misc. constants in "defs.h" you might want to
 *   play with.
 *
 * UNCOMPRESS: put your favourite  uncompress command in here.
 *   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.
 * If you do not wish to have this option (although there's no reason not to)
 * you should define COMPRESSDEFS , below, as blank, and things should
 * work.
 */

UNCOMPRESS = gzip -d -c
UNCOMPRESSEXT = .gz
DICTLOCATION= /usr/local/lib/kanjidic.gz


# IF you have a BSD system, and thereby presumably don't have
# memset, or memcpy, or srand, or lrand48, please uncomment
# the  -DBSD line

# ISBSD = -DBSD 

# Where to install?
# BINDIR = /usr/local/bin/X11

/* it is PRESUMED that if you are not on a BSD system, you are on a SysV
 * system, and thereby DO have memset, memcpy, srand, and lrand48.
 * If any of the above is not true, please tweak "defs.h".
 * Look in the #ifdef BSD section for ideas on what to do.
 *
 */


/******************************************************************
 *   Okay, halt, whoa, cease, desist, go no further...            *
 ******************************************************************/


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
 */

EXTRA_DEFINES = $(ISBSD)

/*CDEBUGFLAGS = -g */

SRCS = main.c options.c readfile.c game.c init.c widgets.c grades.c \
	frequency.c mainwindow.c search.c log.c
OBJS = main.o options.o readfile.o game.o init.o widgets.o grades.o \
	frequency.o mainwindow.o search.o log.o

ComplexProgramTarget(kdrill)

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

