#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS='$(CDEBUGFLAGS)'

#include "../topdir.mk"

SUBDIRS = docs bitmaps

MakeSubdirs($(SUBDIRS))

OBJS = cmalloc.o common.o fonts.o richchar.o

SRCS = cmalloc.c common.c fonts.c richchar.c

EXTRA_DEFINES = -DSIAGHOME=\"$(SIAG_HOME)\" \
	-DSIAGDOCS=\"$(SIAG_DOCS)\" \
	-DSIAGHELP=\"$(SIAG_HELP)\" $(DEBUG)

NormalLibraryTarget(common, $(OBJS))
DependTarget()

clean::
	$(RM) Makefile

install::
	@echo "Installing common support files"
	$(MKDIRHIER) $(SIAG_HOME)/common
	$(CP) any2xpm *.scm dictionary.* $(SIAG_HOME)/common
	$(MKDIRHIER) $(SIAG_DOCS)/common/docs
