1234567891011121314151617181920212223242526272829
  1. CPPFLAGS = -x assembler-with-cpp
  2. AS86 = as86
  3. LD86 = ld86
  4. OBJDUMP = objdump
  5. .SUFFIXES: .s86 .asm .aout .img
  6. all: flashimg.img
  7. clean:
  8. rm -rf *.o *.s86 *.aout *.img
  9. realclean: clean
  10. rm -rf *.img
  11. .asm.s86: $*.asm $*.inc
  12. $(CPP) $(CPPFLAGS) -o $@ $*.asm
  13. .s86.img: $*.s86
  14. $(AS86) -0 -b $@ $*.s86
  15. # .s86.o: $*.s86
  16. # $(AS86) -0 -a -o $@ $*.s86
  17. #
  18. # .o.aout: $*.o
  19. # $(LD86) -0 -s -o $@ $*.o
  20. #
  21. # .aout.img:
  22. # dd if=$*.aout of=$@ bs=32 skip=1