summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makefile-so/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile-so/Makefile b/makefile-so/Makefile
index 9a2de9d..5bb41a0 100644
--- a/makefile-so/Makefile
+++ b/makefile-so/Makefile
@@ -14,7 +14,7 @@ LD_OPTS=
default: all
-clib.o: clib.c
+clib.o: clib.h clib.c
$(CC) $(CCFLAGS) -c -fPIC $<
libclib.so: clib.o
@@ -23,7 +23,7 @@ libclib.so: clib.o
ldlinks:
@ldconfig -n .
-main: libclib.so ldlinks main.o
+main: libclib.so ldlinks clib.h main.o
$(CC) $(LD_OPTS) main.o -L. -lclib -o main
all: main