Skip to content

Instantly share code, notes, and snippets.

@itto-ki
Last active August 4, 2018 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itto-ki/2582f090fc0b6ca15aebcf179a702412 to your computer and use it in GitHub Desktop.
Save itto-ki/2582f090fc0b6ca15aebcf179a702412 to your computer and use it in GitHub Desktop.
NASM := nasm
NASM_FLAG := -f elf32
SRCS := $(wildcard *.S)
OBJS := $(patsubst %.S, %.o, $(SRCS))
.PHONY: build clean
build: $(OBJS)
%.o: %.S
$(NASM) $(NASM_FLAG) -o $@ $<
clean:
rm -rf $(OBJS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment