fix makefile and tests
This commit is contained in:
4
Makefile
4
Makefile
@ -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)
|
||||
|
Reference in New Issue
Block a user