#include "../topdir.mk"

OBJS = dummy.o siodi.o image.o hello.o

SRCS = dummy.c siodi.c image.c hello.c

LOCAL_LIBRARIES = -L../siod -lsiod -L../common -lcommon \
	-L../xcommon -lxcommon -lm $(SYSDEP_LIB) \
	$(DBLIB) -lXpm

EXTRA_DEFINES = -DSIAGHOME=\"$(SIAG_HOME)\"

XCOMM DEFINES = $(EXTRA_DEFINES)
DEPLIBS = $(XTOOLLIB) $(XLIB)
SYS_LIBRARIES = $(LOCAL_LIBRARIES) $(XTOOLLIB) $(XLIB)

AllTarget(dummy image hello)

depend:: ../topdir.mk

clean::
	$(RM) Makefile

SingleProgramTarget(dummy, dummy.o siodi.o, , )
InstallProgram(dummy,$(SIAG_HOME)/plugins)
SingleProgramTarget(image, image.o, , )
InstallProgram(image,$(SIAG_HOME)/plugins)
SingleProgramTarget(hello, hello.o, XawClientLibs, )
InstallProgram(hello,$(SIAG_HOME)/plugins)

install::
	@echo "Installing support files for plugins"
	$(MKDIRHIER) $(SIAG_HOME)/plugins
	$(CP) *.scm $(SIAG_HOME)/plugins
	$(MKDIRHIER) $(SIAG_DOCS)/plugins
	$(CP) plugin.scm dummy.scm $(SIAG_DOCS)/plugins

