From: hachti Date: Wed, 9 Feb 2005 18:18:37 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://gitweb.hachti.de/?a=commitdiff_plain;h=5c020318fba694852c055f26dad8a4da433f6121;p=h316.git *** empty log message *** --- diff --git a/lib/iolib/Makefile b/lib/iolib/Makefile new file mode 100644 index 0000000..de1dfa9 --- /dev/null +++ b/lib/iolib/Makefile @@ -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 +