summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makefile-so/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/makefile-so/Makefile b/makefile-so/Makefile
index fdd2466..10a9028 100644
--- a/makefile-so/Makefile
+++ b/makefile-so/Makefile
@@ -2,7 +2,7 @@ CC = gcc
CCFLAGS=-pedantic -Wall
LD_OPTS=
-# $< - the current dependcy file
+# $< - the current dependency file
# $@ - the current target file
# $* - the base name of the current target
# $? - all dependencies that are newer than the target
@@ -14,7 +14,7 @@ LD_OPTS=
default: all
-clib.o: clib.h clib.c
+clib.o: clib.c clib.h
$(CC) $(CCFLAGS) -c -fPIC $<
libclib.so: clib.o
@@ -23,7 +23,7 @@ libclib.so: clib.o
ldlinks:
@ldconfig -n .
-main: libclib.so ldlinks clib.h main.o
+main: libclib.so ldlinks main.o clib.h
$(CC) $(LD_OPTS) main.o -L. -lclib -o main
all: main