diff options
Diffstat (limited to 'mmc/Makefile')
-rw-r--r-- | mmc/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mmc/Makefile b/mmc/Makefile new file mode 100644 index 0000000..049083d --- /dev/null +++ b/mmc/Makefile @@ -0,0 +1,30 @@ +DSDI=$(wildcard *.dsdi) +DSDI_SSD=${DSDI:%.dsdi=%-1.ssd} ${DSDI:%.dsdi=%-2.ssd} + +SSD=$(wildcard *.ssd) $(wildcard *.SSD) ${DSDI_SSD} + +DISK=/dev/mmcblk0p1 + + + +default: disk.img + mkdosfs -F 16 ${DISK} + mcopy -i ${DISK} disk.img ::BEEB.MMB + sync + +%-1.ssd:%.dsdi deinterleave + ./deinterleave $< $@ ${@:%-1.ssd=%-2.ssd} + +%-2.ssd:%.dsdi deinterleave + ./deinterleave $< ${@:%-2.ssd=%-1.ssd} $@ + +disk.img:assemble ${SSD} + ./assemble ${SSD} > $@ + +assemble:assemble.c +deinterleave:deinterleave.c + +clean: + /bin/rm -f deinterleave assemble disk.img ${DSDI_SSD} + + |