diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-01-27 18:30:10 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-01-27 18:30:10 +0100 |
commit | 29a212c5e8427a34f4da9a1e4b14eefe63b14a52 (patch) | |
tree | d53a85c1554dca31f3629506011881fa7ea943e8 | |
parent | 67602f4c0d29c5805162e6e18aeaf4e5a16eaa0f (diff) |
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a90a45 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +asmnc +*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7927d9c --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +asm_files := $(wildcard *.asm) +obj_files := $(patsubst %.asm,%.o,$(asm_files)) +bin_file := asmnc + +.PHONY: all clean remake + +all: $(bin_file) + +clean: + rm -f $(obj_files) $(bin_file) + +remake: clean all + +%.o: %.asm + nasm -f macho64 -w+all -o $@ $< + +$(bin_file): $(obj_files) + gcc $^ -o $@ |