refactor: .s -> .asm

This commit is contained in:
lohhiiccc 2026-06-12 13:09:02 +02:00
parent 60d76c0453
commit 1a34f9a5e1
3 changed files with 4 additions and 4 deletions

View file

@ -10,10 +10,10 @@ LIB_NAME=mylib
STATIC_LIB=lib$(LIB_NAME).a
SHARED_LIB=lib$(LIB_NAME).so
SRCS=$(SRC_DIR)/ft_strlen.s \
$(SRC_DIR)/ft_strcpy.s
SRCS=$(SRC_DIR)/ft_strlen.asm \
$(SRC_DIR)/ft_strcpy.asm \
OBJS=$(patsubst $(SRC_DIR)/%.s,$(OBJ_DIR)/%.o,$(SRCS))
OBJS=$(patsubst $(SRC_DIR)/%.asm,$(OBJ_DIR)/%.o,$(SRCS))
DEPS=$(OBJS:.o=.d)
.PHONY: all clean dirs static shared
@ -23,7 +23,7 @@ all: dirs $(STATIC_LIB) $(SHARED_LIB)
dirs:
@mkdir -p $(OBJ_DIR)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.s
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.asm
$(NASM) $(NASMFLAGS) $< -o $@
$(STATIC_LIB): $(OBJS)