1 include Makefile-common
4 XPLC=$(WVPORTS)/xplc/build/xplc
5 OPENSSL=$(WVPORTS)/openssl/build/openssl
6 DBUS=$(WVPORTS)/dbus/build/dbus/dbus/.libs
7 BOOST=$(WVPORTS)/boost/build/boost
8 ZLIB=$(WVPORTS)/zlib/build/zlib
9 WVSTREAMS=../wv/wvstreams
11 -DUNICODE_SUPPORT -DODBCVER=0x0351 \
12 -I$(WVSTREAMS)/include -I$(XPLC)/include \
13 -I/usr/include/postgresql
14 CXXFLAGS=$(CFLAGS) -I$(BOOST)
15 WVSTREAMS_STATIC=$(WVSTREAMS)/libwvstatic.a
19 $(OPENSSL)/libssl.a $(OPENSSL)/libcrypto.a \
21 $(XPLC)/libxplc-cxx.a $(XPLC)/libxplc.a -ldl \
22 /usr/lib/libodbc.a -lpthread
24 -L$(WVSTREAMS) -lwvstreams -lwvdbus -lodbc
27 all: wvdbusd.so vxodbc.so vxodbc-test.so test-linker
29 wvdbusd.so: wvdbusd.o $(WVSTREAMS_STATIC)
31 @$(CXX) -shared -o $@ \
35 -Wl,-z,defs,--version-script=wvdbusd.link \
38 $(OBJS): configure config.h
40 vxodbc.so: $(OBJS) $(WVSTREAMS_STATIC)
42 @$(CXX) -shared -o $@ \
46 -Wl,-z,defs,--version-script=vxodbc.link \
49 # Build a dynamically linked version suitable for use by unit tests
50 vxodbc-test.so: $(OBJS)
52 @$(CXX) -shared -o $@ \
58 linker-test: linker-test.o vxodbc.so
60 $(CXX) -o $@ $(LDFLAGS) $^
62 test-linker: linker-test
63 LD_LIBRARY_PATH=. ./linker-test
65 test: vxodbc.so vxodbc-test.so