refactor: .asm -> .s
This commit is contained in:
parent
04a9b24499
commit
25b56f1cd0
14 changed files with 15 additions and 15 deletions
30
Makefile
30
Makefile
|
|
@ -10,21 +10,21 @@ LIB_NAME=asm
|
||||||
STATIC_LIB=lib$(LIB_NAME).a
|
STATIC_LIB=lib$(LIB_NAME).a
|
||||||
SHARED_LIB=lib$(LIB_NAME).so
|
SHARED_LIB=lib$(LIB_NAME).so
|
||||||
|
|
||||||
SRCS=$(SRC_DIR)/ft_strlen.asm \
|
SRCS=$(SRC_DIR)/ft_strlen.s \
|
||||||
$(SRC_DIR)/ft_strcpy.asm \
|
$(SRC_DIR)/ft_strcpy.s \
|
||||||
$(SRC_DIR)/ft_strcmp.asm \
|
$(SRC_DIR)/ft_strcmp.s \
|
||||||
$(SRC_DIR)/ft_write.asm \
|
$(SRC_DIR)/ft_write.s \
|
||||||
$(SRC_DIR)/ft_read.asm \
|
$(SRC_DIR)/ft_read.s \
|
||||||
$(SRC_DIR)/ft_strdup.asm \
|
$(SRC_DIR)/ft_strdup.s \
|
||||||
$(SRC_DIR)/ft_memcpy.asm \
|
$(SRC_DIR)/ft_memcpy.s \
|
||||||
$(SRC_DIR)/ft_isspace.asm \
|
$(SRC_DIR)/ft_isspace.s \
|
||||||
$(SRC_DIR)/ft_bzero.asm \
|
$(SRC_DIR)/ft_bzero.s \
|
||||||
$(SRC_DIR)/ft_atoibase.asm \
|
$(SRC_DIR)/ft_atoibase.s \
|
||||||
$(SRC_DIR)/ft_list_push_front.asm \
|
$(SRC_DIR)/ft_list_push_front.s \
|
||||||
$(SRC_DIR)/ft_list_size.asm \
|
$(SRC_DIR)/ft_list_size.s \
|
||||||
$(SRC_DIR)/ft_list_sort.asm
|
$(SRC_DIR)/ft_list_sort.s
|
||||||
|
|
||||||
OBJS=$(patsubst $(SRC_DIR)/%.asm,$(OBJ_DIR)/%.o,$(SRCS))
|
OBJS=$(patsubst $(SRC_DIR)/%.s,$(OBJ_DIR)/%.o,$(SRCS))
|
||||||
DEPS=$(OBJS:.o=.d)
|
DEPS=$(OBJS:.o=.d)
|
||||||
|
|
||||||
.PHONY: all clean fclean re dirs static shared
|
.PHONY: all clean fclean re dirs static shared
|
||||||
|
|
@ -34,7 +34,7 @@ all: dirs $(STATIC_LIB) $(SHARED_LIB)
|
||||||
dirs:
|
dirs:
|
||||||
@mkdir -p $(OBJ_DIR)
|
@mkdir -p $(OBJ_DIR)
|
||||||
|
|
||||||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.asm
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.s
|
||||||
$(NASM) $(NASMFLAGS) $< -o $@
|
$(NASM) $(NASMFLAGS) $< -o $@
|
||||||
|
|
||||||
$(STATIC_LIB): $(OBJS)
|
$(STATIC_LIB): $(OBJS)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue