aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-12-27 19:52:00 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-12-27 19:52:00 -0700
commitf18f3318d8a62656ccfef8f983e1629c2ab1c986 (patch)
tree4cadebcc2e1de0d45e77528eb1114a6c75735e5b /Makefile
parentb88cac232712ede3235e3ceb33a3d3993fa5c7bb (diff)
explain the .lo Makefile rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ee23065..7724303 100644
--- a/Makefile
+++ b/Makefile
@@ -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