Commit 194cfa20 authored by Полина Соколова's avatar Полина Соколова
Browse files

Add new file

parent 0273762e
No related merge requests found
Pipeline #99304 failed with stages
in 5 seconds
EXECUTABLE = my_program
ASM_FILES = dict.asm lib.asm main.asm
OBJ_FILES = $(ASM_FILES:.asm=.o)
NASM = nasm
NASMFLAGS = -f elf64
LD = ld
LDFLAGS =
PYTHON = python3
TEST_SCRIPT = main.py
all: $(EXECUTABLE)
%.o: %.asm
$(NASM) $(NASMFLAGS) $< -o $@
$(EXECUTABLE): $(OBJ_FILES)
$(LD) $(LDFLAGS) $^ -o $@
test: $(EXECUTABLE)
$(PYTHON) $(TEST_SCRIPT)
clean:
$(RM) $(OBJ_FILES) $(EXECUTABLE)
rebuild: clean all
.PHONY: all test clean rebuild
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment