Makefile 323B

123456789101112131415
  1. # Use nasm or as86
  2. ASM=nasm
  3. # ASM=as86
  4. hdload.bin: hdload.S
  5. ifeq ($(ASM),as86)
  6. gcc $(CFLAGS) -DUSE_AS86 -E -traditional -o hdload.s hdload.S
  7. as86 -0 -b hdload.bin hdload.s
  8. else
  9. gcc $(CFLAGS) -DUSE_NASM -E -traditional -o hdload.s hdload.S
  10. nasm -f bin hdload.s -o hdload.bin
  11. endif
  12. clean:
  13. $(RM) -f hdload.s hdload.bin