put /local/rnd/mod {io_tinycad}
put /local/rnd/mod/OBJS [@
	$(PLUGDIR)/io_tinycad/io_tinycad.o
	$(PLUGDIR)/io_tinycad/read.o
@]

put /local/rnd/mod/CONFFILE {io_tinycad.conf}
put /local/rnd/mod/CONF {$(PLUGDIR)/io_tinycad/io_tinycad_conf.h}
put /local/rnd/mod/CONFVAR {io_tinycad_conf_internal}

switch /local/module/io_tinycad/controls
	case {disable} end;
	default
		put /local/rnd/mod/CFLAGS   /target/libs/sul/libxml2/cflags
		put /local/rnd/mod/LDFLAGS  /target/libs/sul/libxml2/ldflags
	end
end

switch /local/module/io_tinycad/controls
	case {buildin}   include /local/csch/tmpasm/buildin; end;
	case {plugin}    include /local/csch/tmpasm/plugin; end;
	case {disable}   include /local/csch/tmpasm/disable; end;
end
