aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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