#include <./Common.tmpl>

#define IHaveSubDirs
#ifdef CDebugging
#if HasGcc
#define PassCDebugFlags 'CDEBUGFLAGS=-g -Wall'
#else
#ifdef AlphaArchitecture
#define PassCDebugFlags 'CDEBUGFLAGS=-g -std1'
#else
#define PassCDebugFlags 'CDEBUGFLAGS=-g'
#endif
#endif
#else
#if HasGcc
#define PassCDebugFlags 'CDEBUGFLAGS=-O'
#else
#ifdef AlphaArchitecture
#define PassCDebugFlags 'CDEBUGFLAGS=-O -std1'
#else
#define PassCDebugFlags 'CDEBUGFLAGS=-O'
#endif
#endif
#endif

SUBDIRS = common www image html plain proto mxw main

MakeSubdirs($(SUBDIRS))
InstallSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
CleanSubdirs($(SUBDIRS))
MakefileSubdirs($(SUBDIRS))
InstallManSubdirs($(SUBDIRS))

myclean: clean
	$(RM) Common.tmpl Makefile Makefile.bak make.err make.out .depend
	for i in $(SUBDIRS); do \
		$(RM) $$i/Makefile $$i/Makefile.bak $$i/.depend; \
	done
