+%-emd.o: %.emd
+ @$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
+ @$(AS) -o $@ $(AFLAGS) $(*)-emd.s
+
+%-joy.o: %.joy
+ @$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
+ @$(AS) -o $@ $(AFLAGS) $(*)-joy.s
+
+%-tgi.o: %.tgi
+ @$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
+ @$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
+
+%.emd: %.o ../runtime/zeropage.o
+ @$(LD) -o $@ -t module $^
+
+%.joy: %.o ../runtime/zeropage.o
+ @$(LD) -o $@ -t module $^
+
+%.tgi: %.o ../runtime/zeropage.o
+ @$(LD) -o $@ -t module $^
+