blob: 409aedd145677845236ebe3735b998528f1a5ca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
objs := wrappers.o libsb2.o sb_exec.o
PROTOTYPEWARNINGS=-Wmissing-prototypes -Wstrict-prototypes
$(D)/libsb2.so: $(call O,$(objs))
$(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
$(D)/libsb2.so: LIBS := -ldl -lm -lpthread -lrt
targets := $(targets) $(D)/libsb2.so
preload/wrappers.c: preload/interface.master preload/gen-interface.pl
$(P)PERL
$(Q)preload/gen-interface.pl \
-W preload/wrappers.c \
-E preload/exported.h \
-L preload/ldexportlist \
<preload/interface.master
generated = preload/wrappers.c preload/exported.h preload/ldexportlist
.PRECIOUS: $(generated)
CLEAN_FILES += $(generated)
|