12345678910111213141516171819202122232425262728 |
- LD=ld
- #LDFLAGS=-melf_i386
- LDFLAGS=
- ASM=yasm
- #ASMFLAGS=-f elf32 -g DWARF2
- ASMFLAGS=-f elf64 -g DWARF2
- #SOURCES=exit_syscall.asm cat.asm cat64.asm hex0_nocomments.asm hex0.asm
- SOURCES=cat64.asm hex0.asm hex0glo.asm hex0globuf.asm hex2.asm strcmp.asm hex0globuflbl.asm \
- words.asm
- OBJECTS=$(SOURCES:.asm=.o)
- BINARIES=$(OBJECTS:.o=.bin)
- .PHONY: all
- all: $(BINARIES)
- .PHONY: clean
- clean:
- rm -f $(OBJECTS)
- rm -f $(BINARIES)
- %.o: %.asm
- $(ASM) $(ASMFLAGS) $< -o $@
- %.bin: %.o
- $(LD) $(LDFLAGS) $< -o $@
|