Makefile 274 B

1234567891011121314151617
  1. AS=nasm
  2. LD=ld
  3. ASFLAGS=-f elf32 -I"./include"
  4. LDFLAGS=-m elf_i386
  5. all: assembly linking
  6. assembly: main.asm src/io.asm
  7. $(AS) $(ASFLAGS) main.asm
  8. $(AS) $(ASFLAGS) src/io.asm
  9. linking: main.o src/io.o
  10. $(LD) $(LDFLAGS) main.o src/io.o -o main
  11. clean:
  12. rm -f main.o src/io.o