sfl-examples/slide-examples/Makefile

16 lines
245 B
Makefile
Raw Normal View History

2023-12-14 14:12:51 +01:00
# Makefile for SFL examples
SOURCES = $(wildcard *.asm)
OBJS = $(SOURCES:.asm=.o)
EXECS = $(patsubst %.asm,%.runme,$(SOURCES))
all: $(EXECS)
%.o: %.asm
nasm -g -f elf64 $<
%.runme: %.o
ld -s -o $@ $<
clean:
rm -f *.o *.runme sre_examples