raw
m_genesis.kv            1 PROJ = m
m_genesis.kv 2 ASMER = yasm
m_genesis.kv 3 ASMARGS = -f elf64 -g null
m_genesis.kv 4 DWARFARGS = -f elf64 -g dwarf2
m_genesis.kv 5 LINKER = ld
m_genesis.kv 6 LNKARGS = --strip-all
m_genesis.kv 7 BUILD=build
m_genesis.kv 8 BIN=bin
m_genesis.kv 9
m_genesis.kv 10 all: asm lnk
m_genesis.kv 11
m_genesis.kv 12 asm:
m_genesis.kv 13 $(ASMER) $(ASMARGS) $(PROJ).asm -o $(BUILD)/$(PROJ).o
m_genesis.kv 14
m_genesis.kv 15 dwarf:
m_genesis.kv 16 $(ASMER) $(DWARFARGS) $(PROJ).asm -o $(BUILD)/$(PROJ).o
m_genesis.kv 17
m_genesis.kv 18 lnk:
m_genesis.kv 19 $(LINKER) $(LNKARGS) $(BUILD)/$(PROJ).o -o $(BIN)/$(PROJ)
m_genesis.kv 20
m_genesis.kv 21 dbglnk:
m_genesis.kv 22 $(LINKER) $(LNKARGS) $(BUILD)/$(PROJ).o -o $(BIN)/$(PROJ)
m_genesis.kv 23
m_genesis.kv 24 dis: dwarf lnk
m_genesis.kv 25 objdump --disassembler-options=intel -D $(BIN)/$(PROJ)
m_genesis.kv 26
m_genesis.kv 27 dissrc: dwarf dbglnk
m_genesis.kv 28 objdump --disassembler-options=intel -S -D $(BIN)/$(PROJ)
m_genesis.kv 29
m_genesis.kv 30 disraw: all
m_genesis.kv 31 objdump --disassembler-options=intel -D $(BIN)/$(PROJ)
m_genesis.kv 32
m_genesis.kv 33 debug: clean dwarf dbglnk
m_genesis.kv 34 gdb --command misc/m.gdb
m_genesis.kv 35
m_genesis.kv 36 clean:
m_genesis.kv 37 rm -f $(BUILD)/*.o $(BIN)/$(PROJ)