Last active
August 4, 2018 19:46
-
-
Save itto-ki/2582f090fc0b6ca15aebcf179a702412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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