#include <compilation.h>

#ifdef OVERRIDE_COMPILER
 OVERRIDE_COMPILER
#endif

BIN_DIR
MAN_DIR

#define IHaveSubdirs

/* Can define debug flags to anything you need, for exemple :
 *
 * CDEBUGFLAGS = -LMyLibrarydir
 * CFLAGS = -Debug
 */

#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

SUBDIRS= src src/graphics

MakeSubdirs($(SUBDIRS))

autoconf:
	autoconf --localdir=autoconf autoconf/configure.in \
	> configure
	chmod 755 configure

autoheader:
	autoheader --localdir=autoconf autoconf/configure.in \
	> autoconf/config.h.in
	chmod 644 autoconf/config.h.in

config:
	make autoconf
	make autoheader

distclean:
	make clean
	rm -fr config.cache config.log config.status config.h compilation.h Makefile*

xiterm:
	cd src ; make
