diff options
| author | kitty <nepeta@canaglie.net> | 2026-03-15 14:37:07 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-03-15 14:37:07 +1100 |
| commit | 726c1087c1a52a1fb4799ea6130b10182ed2222a (patch) | |
| tree | 042a94061eec71ea4c91e9975f5dfc78cf47850e /Makefile | |
| parent | b7674299e50c469b13d2f0eb8320a8dc1925b836 (diff) | |
template makefile and asm
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e1a04a7 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +TARGET := sanctuary +SRCS = sanctuary.s + +all: $(TARGET) + +$(TARGET): $(TARGET).o + ld -N -static -o $@ $< + +$(TARGET).o: $(SRCS) + nasm -g -F dwarf -f elf64 -o $@ $< + +.PHONY: clean +clean: + -rm -f $(TARGET) $(TARGET).o |
