2 LIBWVSTATIC
=$(WVSTREAMS_LIB
)/libwvstatic.a
3 LIBWVBASE
=$(LIBWVSTATIC
)
4 LIBWVUTILS
=$(LIBWVSTATIC
)
5 LIBWVSTREAMS
=$(LIBWVSTATIC
)
6 LIBUNICONF
=$(LIBWVSTATIC
)
7 LIBWVDBUS
=$(LIBWVSTATIC
) $(LIBS_DBUS
)
9 LIBWVTEST
=$(WVSTREAMS_LIB
)/libwvtest.a
$(LIBWVUTILS
)
11 LIBWVSTATIC
=$(WVSTREAMS_LIB
)/libwvstatic.a
12 LIBWVBASE
=$(WVSTREAMS_LIB
)/libwvbase.so
$(LIBXPLC
)
13 LIBWVUTILS
=$(WVSTREAMS_LIB
)/libwvutils.so
$(LIBWVBASE
)
14 LIBWVSTREAMS
=$(WVSTREAMS_LIB
)/libwvstreams.so
$(LIBWVUTILS
)
15 LIBUNICONF
=$(WVSTREAMS_LIB
)/libuniconf.so
$(LIBWVSTREAMS
)
16 LIBWVDBUS
=$(WVSTREAMS_LIB
)/libwvdbus.so
$(LIBWVSTREAMS
)
17 LIBWVQT
=$(WVSTREAMS_LIB
)/libwvqt.so
$(LIBWVSTREAMS
)
18 LIBWVTEST
=$(WVSTREAMS_LIB
)/libwvtest.a
$(LIBWVUTILS
)
22 # Initial C compilation flags
24 INCFLAGS
=$(addprefix -I
,$(WVSTREAMS_INC
) $(XPATH
))
26 CPPFLAGS
+= $(CPPOPTS
)
28 CXXFLAGS
+= $(CXXOPTS
)
29 LDFLAGS
+= $(LDOPTS
) -L
$(WVSTREAMS_LIB
)
31 # Default compiler we use for linking
34 ifneq ("$(enable_optimization)", "no")
39 ifneq ("$(enable_warnings)", "no")
40 CXXFLAGS
+=-Wall
-Woverloaded-virtual
44 DEBUG
:=$(filter-out no
0,$(enable_debug
))
46 CPPFLAGS
+= -ggdb
-DDEBUG
=1 $(patsubst %,-DDEBUG_
%,$(DEBUG
))
54 $(LINK_MSG
)set
-e
; rm -f
$1 $(patsubst %.a
,%.libs
,$1); \
55 echo
$2 >$(patsubst %.a
,%.libs
,$1); \
56 $(AR
) q
$1 $(filter %.o
,$2); \
57 for d in
"" $(filter %.libs
,$2); do \
58 if
[ "$$d" != "" ]; then \
59 cd
$$(dirname
"$$d"); \
60 $(AR
) q
$(shell pwd
)/$1 $$(cat
$$(basename $$d)); \
68 @CC
="$(CC)" CFLAGS
="$(CFLAGS)" CPPFLAGS
="$(CPPFLAGS)" \
69 $(WVSTREAMS
)/gen-cc CC c
72 @CC
="$(CXX)" CFLAGS
="$(CXXFLAGS)" CPPFLAGS
="$(CPPFLAGS)" \
73 $(WVSTREAMS
)/gen-cc CXX
cc
75 wvlink
=$(LINK_MSG
)$(WVLINK_CC
) $(LDFLAGS
) $($1-LDFLAGS
) -o
$1 $(filter %.o
%.a
%.so
, $2) $($1-LIBS
) $(XX_LIBS
) $(LDLIBS
) $(PRELIBS
) $(LIBS
)