fix makefile and tests

This commit is contained in:
2025-08-07 13:41:51 +02:00
parent caa21a3fb0
commit 1899b01d0a
2 changed files with 6 additions and 4 deletions

View File

@ -27,11 +27,11 @@ FLAGS = -felf64
all: $(NAME)
test: test.c bonus
clang -z noexecstack test.c -L. -lasm_bonus -o test -g
clang -z noexecstack test.c -L. -lasm -o test -g
./test || echo -e "\033[31m tests exited with an error code"
bonus: $(OBJS_DIR) $(OBJS) $(OBJS_BONUS)
ar rcs $@ $(OBJS) $(OBJS_BONUS)
ar rcs $(NAME) $(OBJS) $(OBJS_BONUS)
$(NAME): $(OBJS_DIR) $(OBJS)
ar rcs $@ $(OBJS)