*** empty log message ***
authorhachti <hachti>
Wed, 9 Feb 2005 18:18:37 +0000 (18:18 +0000)
committerhachti <hachti>
Wed, 9 Feb 2005 18:18:37 +0000 (18:18 +0000)
lib/iolib/Makefile [new file with mode: 0644]

diff --git a/lib/iolib/Makefile b/lib/iolib/Makefile
new file mode 100644 (file)
index 0000000..de1dfa9
--- /dev/null
@@ -0,0 +1,39 @@
+# 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