aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1ab26f8..fc5fc11 100644
--- a/Makefile
+++ b/Makefile
@@ -8,13 +8,16 @@ LDFLAGS = -L$(LIBASM_PATH) -lasm
NAME = runtest
SRC = main.c ft_strlen_test.c ft_strcpy_test.c ft_strcmp_test.c \
- ft_write_test.c ft_read_test.c ft_strdup_test.c
+ ft_write_test.c ft_read_test.c ft_strdup_test.c helper.c
OBJ = $(SRC:.c=.o)
+run: all
+ ./runtest
+
all: $(NAME)
-$(NAME): $(OBJ)
- $(CC) $(LDFLAGS) -o $@ $^
+$(NAME): libasm_all $(OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(OBJ)
%.o: %.c
$(CC) $(CCFLAGS) -c -o $@ $<