From 82530faf200f62b8d86fe8d47fee637d8decd6e4 Mon Sep 17 00:00:00 2001 From: Tadashi Saito Date: Tue, 26 Nov 2024 19:24:10 +0900 Subject: [PATCH] Fix some of Makefile. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 314227e..2e51e4b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS=-Wall -Wextra -O3 -fPIC $(XCFLAGS) ANALYZE=-fanalyzer LIB=libscary.so -all: $(LIB) +all: test $(LIB): scary.o testlib.o scary.o: scary.h @@ -22,7 +22,7 @@ test: testlib env LD_LIBRARY_PATH=. ./$< testlib: testlib.c $(LIB) - $(CC) $(CFLAGS) -L. -lscary -lcriterion $^ -o $@ + $(CC) $(CFLAGS) -L. $< -lscary -lcriterion -o $@ clean: rm -f *.o *.so