--- /dev/null
+# Skript, das die neue Bibliothek zusammenbauen soll
+
+OWN = i$$pa o$$al o$$la o$$pb o$$pl
+
+OWN_1=$(foreach obj, $(OWN),$(obj).asm)
+OWN_2=$(OWN_1:.asm=.obj)
+OWN_3=$(shell echo $(subst $$,\$$,$(OWN)) | dd conv=ucase 2>/dev/null)
+#$(subst abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,$(OWN))
+
+
+ORG_USE=I$$AB I$$AI O$$AB O$$AI
+
+ASM=$H316/bin/asm
+
+##########################################
+
+all: iolib
+
+iolib: $(foreach org, $(ORG_USE), original/$(org)) $(OWN_3)
+ @echo Baue Bibliothek endgültig zusammen.
+ cat $(subst $$,\$$,\
+ $(foreach og, $(ORG_USE),original/$(og))\
+ $(OWN_3)) $(H316)/snippets/endseq \
+ > iolib || rm iolib
+
+obj object objects : $(OWN_2)
+
+$(OWN_3): $(OWN_2)
+ cat $(subst $$,\$$,$(OWN_2)) | ldc -s
+
+$(OWN_2):%.obj:src/%.asm
+ asm $(subst $$,\$$,$^)
+
+clean:
+ rm -f *.obj $(subst $$,\$$,$(OWN_3) $(foreach obj,$(OWN_2),src/$(obj))) iolib *.lst
+
+###########
+.PHONY: clean all obj object objects
+