diff options
author | Brendan Taylor <whateley@gmail.com> | 2010-12-27 19:52:00 -0700 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2010-12-27 19:52:00 -0700 |
commit | f18f3318d8a62656ccfef8f983e1629c2ab1c986 (patch) | |
tree | 4cadebcc2e1de0d45e77528eb1114a6c75735e5b /Makefile | |
parent | b88cac232712ede3235e3ceb33a3d3993fa5c7bb (diff) |
explain the .lo Makefile rules
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -47,9 +47,6 @@ VPATH:=src ${OBJ}: ${HEAD} -${LOBJ}: - $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c src/$(@:.lo=.c) -o $@ - uzbl-core: ${OBJ} uzbl-cookie-manager: examples/uzbl-cookie-manager.o util.o @@ -62,6 +59,10 @@ uzbl-browser: uzbl-core uzbl-cookie-manager .PHONY: tests force: +# this is here because the .so needs to be compiled with -fPIC on x86_64 +${LOBJ}: ${SRC} ${HEAD} + $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c src/$(@:.lo=.c) -o $@ + # When compiling unit tests, compile uzbl as a library first tests: ${LOBJ} force $(CC) -shared -Wl ${LOBJ} -o ./tests/libuzbl-core.so |