*** empty log message ***
[h316.git] / lib / iolib / Makefile
1 # Skript, das die neue Bibliothek zusammenbauen soll
2
3 OWN = i$$pa o$$al o$$la o$$pb o$$pl
4
5 OWN_1=$(foreach obj, $(OWN),$(obj).asm)
6 OWN_2=$(OWN_1:.asm=.obj)
7 OWN_3=$(shell echo $(subst $$,\$$,$(OWN)) | dd conv=ucase 2>/dev/null)
8 #$(subst abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,$(OWN))
9
10
11 ORG_USE=I$$AB I$$AI O$$AB O$$AI
12
13 ASM=$H316/bin/asm
14
15 ##########################################
16
17 all: iolib
18
19 iolib: $(foreach org, $(ORG_USE), original/$(org)) $(OWN_3)
20 @echo Baue Bibliothek endgültig zusammen.
21 cat $(subst $$,\$$,\
22 $(foreach og, $(ORG_USE),original/$(og))\
23 $(OWN_3)) $(H316)/snippets/endseq \
24 > iolib || rm iolib
25
26 obj object objects : $(OWN_2)
27
28 $(OWN_3): $(OWN_2)
29 cat $(subst $$,\$$,$(OWN_2)) | ldc -s
30
31 $(OWN_2):%.obj:src/%.asm
32 asm $(subst $$,\$$,$^)
33
34 clean:
35 rm -f *.obj $(subst $$,\$$,$(OWN_3) $(foreach obj,$(OWN_2),src/$(obj))) iolib *.lst
36
37 ###########
38 .PHONY: clean all obj object objects
39