sfl-examples/lecture-demos/gdb-and-asm-intro/Makefile

14 lines
200 B
Makefile
Raw Normal View History

2023-12-14 13:56:57 +01:00
SOURCES = $(wildcard *.asm)
OBJS = $(SOURCES:.asm=.o)
EXECS = $(patsubst %.asm,%.runme,$(SOURCES))
all: $(EXECS)
%.o: %.asm
nasm -g -f elf64 $<
%.runme: %.o
ld -o $@ $<
clean:
rm -f *.o *.runme