attempt at building a cd image (failed)
[psx_test1] / Makefile
index 5da7d41..c0a1ea4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ dep = $(csrc:.c=.d) $(ssrc:.S=.d)
 
 elf = test1.elf
 bin = test1.psx
+iso = test1.iso
 
 TCPREFIX = mipsel-linux-gnu-
 
@@ -25,11 +26,17 @@ $(bin): $(elf)
 $(elf): $(obj)
        $(LD) -o $@ $(obj) -Map link.map $(LDFLAGS)
 
+$(iso): cd/cd.xml cd/system.cnf $(bin)
+       mkpsxiso -o $@ -y $<
+
 -include $(dep)
 
 %.s: %.c
        $(CC) $(CFLAGS) -S -o $@ $<
 
+.PHONY: iso
+iso: $(iso)
+
 .PHONY: clean
 clean:
        rm -f $(obj) $(bin) $(elf) link.map
@@ -41,3 +48,7 @@ cleandep:
 .PHONY: run
 run: $(bin)
        mednafen $<
+
+.PHONY: runiso
+runiso: $(iso)
+       mednafen test1.cue