/* Imakefile for AfterStep.                                  */

#include <configure.h>
#define IHaveSubdirs

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

#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'


SUBDIRS = src/lib \
	src \
	afterdoc \
	apps/ascd \
	apps/asclock \
	apps/asfsm \
	apps/asload \
	apps/asmail \
	apps/asmix \
	apps/asmixer \
	apps/asprint \
	apps/xiterm/src \
	modules/ASSound \
	modules/Animate \
	modules/Audio \
	modules/Auto \
	modules/Banner \
	modules/Clean \
	modules/Form \
	modules/Ident \
	modules/Save \
	modules/Scroll \
	modules/Pager \
	modules/PagerNOXPM \
	modules/Wharf \
	modules/WinList \
	modules/Zharf

MakeSubdirs($(SUBDIRS))

install::
	if [ -d /usr/share/afterstep/ ] ; \
	then mv /usr/share/afterstep/ /usr/share/oldafterstep ; \
	fi
	cp -R afterstep /usr/share/afterstep

mrproper::
	rm -fr config.cache config.log config.status Makefile.bak *.orig

autoconf::
	autoheader configure.in > os-dependant.h ; autoconf configure.in > configure
