diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-24 15:01:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-24 15:01:03 +0200 |
commit | b26215c909c9388753979f6e1a71744e18212b73 (patch) | |
tree | a71422c6cbb16182c8a910910af5ac5094a5de93 /makefile-so | |
parent | ddfc7cad49c8704240a0d36d2ff1f400beff1699 (diff) | |
download | skeletons-b26215c909c9388753979f6e1a71744e18212b73.zip skeletons-b26215c909c9388753979f6e1a71744e18212b73.tar.gz |
amkefile-so: fix Makefile dependencies
Diffstat (limited to 'makefile-so')
-rw-r--r-- | makefile-so/Makefile | 6 |
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 |