AS := ulmas
LD := ulmld

TestTargets := xhello xanswer

all:    $(TestTargets)

clean:
        $(RM) $(TestTargets) *.o

xanswer: xanswer.o crt0.o puts.o putui.o
        $(LD) -o $@ $^

xhello: xhello.o crt0.o puts.o putui.o
        $(LD) -o $@ $^

xhello.o: xhello.s 
        $(AS) -o $@ $^

xanswer.o: xanswer.s
        $(AS) -o $@ $^

crt0.o: crt0.s
        $(AS) -o $@ $^

puts.o: puts.s
        $(AS) -o $@ $^

putui.o: putui.s
        $(AS) -o $@ $^
