Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ASM = nasm
- ASFLAGS = -f elf64
- TARGET_LIB = libasm.so
- SRC = strlen.asm \
- OBJS = $(SRC:.asm=.o)
- all: $(TARGET_LIB)
- $(TARGET_LIB): $(OBJS)
- ld -shared -o $(TARGET_LIB) $(OBJS)
- %.o: %.asm
- $(ASM) $(ASFLAGS) $< -o $@
- clean:
- rm -f $(OBJS)
- fclean: clean
- rm -f $(TARGET_LIB)
- re: fclean all
- .PHONY: all clean fclean re
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement