14 lines
200 B
Makefile
14 lines
200 B
Makefile
|
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
|