summaryrefslogtreecommitdiff
path: root/preload/Makefile
diff options
context:
space:
mode:
authorLauri Leukkunen <lle@rahina.org>2007-10-30 23:04:01 +0200
committerLauri Leukkunen <lle@rahina.org>2007-10-30 23:04:01 +0200
commitb308d483eecb43a627e0c796ffccd6438b501ca1 (patch)
tree69e778d283e9eb068dc40c357d95d5224bf05674 /preload/Makefile
parent49dcd321cb586298326ef9258349c183e6c695d3 (diff)
Fix parallel build
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
Diffstat (limited to 'preload/Makefile')
-rw-r--r--preload/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/preload/Makefile b/preload/Makefile
index 409aedd..c163df2 100644
--- a/preload/Makefile
+++ b/preload/Makefile
@@ -7,12 +7,14 @@ $(D)/libsb2.so: mapping/libmapping.a mapping/liblua.a
$(D)/libsb2.so: CFLAGS := $(CFLAGS) -fPIC -Wall -W \
$(PROTOTYPEWARNINGS)
$(D)/libsb2.so: LDFLAGS := $(LDFLAGS) -Wl,-soname=$(LIBSB2_SONAME) \
- -Wl,--retain-symbols-file=$(D)/ldexportlist
+ -Wl,--retain-symbols-file=preload/ldexportlist
$(D)/libsb2.so: LIBS := -ldl -lm -lpthread -lrt
targets := $(targets) $(D)/libsb2.so
-preload/wrappers.c: preload/interface.master preload/gen-interface.pl
+$(D)/libsb2.o $(D)/sb_exec.o: preload/exported.h
+$(D)/exported.h $(D)/ldexportlist: preload/wrappers.c
+$(D)/wrappers.c: preload/interface.master preload/gen-interface.pl
$(P)PERL
$(Q)preload/gen-interface.pl \
-W preload/wrappers.c \
@@ -20,7 +22,7 @@ preload/wrappers.c: preload/interface.master preload/gen-interface.pl
-L preload/ldexportlist \
<preload/interface.master
-generated = preload/wrappers.c preload/exported.h preload/ldexportlist
+generated := preload/wrappers.c preload/exported.h preload/ldexportlist
.PRECIOUS: $(generated)
CLEAN_FILES += $(generated)