put /local/objs /local/librnd/HDRS_CORELIB
gsub /local/objs { } {\n}

foreach /local/h in /local/objs
	sub /local/h {^[$](LIBRND)/} {}
	switch /local/h
		case {core/funchash_core_list.h} end;
		case {^font/} end;
		case {^poly/} end;
		case {^polybool/} end;
		default
			print [@#include <librnd/@/local/h@>
@]
		end
	end
end
