Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
435 B
1
Indexable
Never
##
## EPITECH PROJECT, 2023
## Makefile
## File description:
## Gautier BONHUR - Assembler
##

CC = gcc
CFLAGS = -fPIC -Wall -Wextra -Werror

SRC = strlen.asm memcpy.asm
OBJ = $(SRC:.asm=.o)

all:	$(OBJ)
	$(CC) -shared -o libasm.so $(OBJ)

%.o: %.asm
	nasm -f elf64 -o $@ $<

re: fclean all

clean:
	rm -f $(OBJ)

fclean: clean
	rm -f *.so
	rm -f *.o

re:	$(NAME)

.PHONY: fclean tests_run clean re make