summaryrefslogtreecommitdiff
path: root/Makefile
blob: 24ae28facad6453e52fc4f45d0ffd94a5fb6377c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TARGET := sanctuary
SRCS = sanctuary.s
FTHS = sanctuary.fs

all: $(TARGET)

$(TARGET): $(TARGET).o
	ld -N -static -o $@ $<

$(TARGET).o: $(SRCS) $(FTHS)
	nasm -g -F dwarf -f elf64 -o $@ $<

.PHONY: clean
clean:
	-rm -f $(TARGET) $(TARGET).o