XCOMM This is the Imakefile for using Siod 3.4 with Siag
XCOMM Use the original Siod distribution to build stand-alone

#include "../topdir.mk"

OBJS = slib.o sliba.o trace.o md5.o slibu.o ss.o ndbm.o regex.o tar.o
SRCS = slib.c sliba.c trace.c md5.c slibu.c ss.c ndbm.c regex.c tar.c

EXTRA_DEFINES = -Dunix -DSIAG $(DEBUG) $(NDBM)

NormalLibraryTarget(siod, $(OBJS))
DependTarget()

clean::
	$(RM) Makefile siod

siod::
	$(CC) -o siod siod.c libsiod.a -lm -lcrypt

install::
	@echo "Installing support files for SIOD"
	$(MKDIRHIER) $(SIAG_HOME)/siod
	$(CP) *.scm $(SIAG_HOME)/siod
	$(MKDIRHIER) $(SIAG_DOCS)/siod/docs
	$(CP) *.scm $(SIAG_DOCS)/siod
	(cd docs; $(CP) * $(SIAG_DOCS)/siod/docs)
