targets=data-text-segment-test-1.exe data-text-segment-test-2.exe ld_args=-m elf_i386 ld_dbg=-g -static yasm_args=-f elf32 yasm_dbg=-g dwarf2 all: $(targets) %.o: %.asm yasm $(yasm_args) $(yasm_debg) -o $@ $*.asm %.exe: %.o ld $(ld_args) $(ld_dgb) -e start -o $@ $^