Cleaned up vxodbc Makefiles by relying on wvrules.mk.
[versaplex.git] / vxodbc / Makefile
blobed204a262bf76aba879d504aeb5f2b1abdcfad16
1 include ../config.mk
2 WVSTREAMS:=$(shell pwd)/../wv/wvstreams
3 include $(WVSTREAMS)/wvrules.mk
5 ifndef BUILD_TARGET
6 $(error Please run the "configure" or "configure-mingw32" script in ..)
7 endif
9 WVPORTS=../wv/wvports
10 XPLC=$(WVPORTS)/xplc/build/xplc
11 OPENSSL=$(WVPORTS)/openssl/build/openssl
12 DBUS=$(WVPORTS)/dbus/build/dbus/dbus/.libs
13 BOOST=$(WVPORTS)/boost/build/boost
14 ZLIB=$(WVPORTS)/zlib/build/zlib
15 CXXFLAGS+=-w \
16 -DUNICODE_SUPPORT -DODBCVER=0x0351 \
17 -I$(WVSTREAMS)/include -I$(XPLC)/include -I$(BOOST)
19 OBJS=\
20 bind.o \
21 columninfo.o \
22 connection.o \
23 convert.o \
24 dlg_specific.o \
25 dlg_wingui.o \
26 drvconn.o \
27 environ.o \
28 execute.o \
29 info.o \
30 info30.o \
31 misc.o \
32 mylog.o \
33 pgapi30.o \
34 multibyte.o \
35 options.o \
36 parse.o \
37 pgtypes.o \
38 psqlodbc.o \
39 qresult.o \
40 results.o \
41 statement.o \
42 tuple.o \
43 odbcapi.o \
44 odbcapi30.o \
45 descriptor.o \
46 odbcapiw.o \
47 odbcapi30w.o \
48 inouealc.o \
49 win_unicode.o \
50 wvlogger.o \
51 wvssl_necessities.o \
52 vxhelpers.o
54 # Files made by configure
55 CONFIGUREFILES=\
56 configure \
57 config.status \
58 config.h \
59 config.h.in
61 distclean: clean
62 rm -f $(CONFIGUREFILES)
63 rm -rf autom4te.cache
65 clean:
66 rm -f *.o *.so *~ *.res *.dll *.a .*.d *.d
67 $(MAKE) -C t $@
69 config.h.in: configure.ac aclocal.m4
70 autoheader
72 configure: configure.ac config.h.in
73 autoconf
75 include $(wildcard .*.d)
77 test tests:
78 $(MAKE) -C t $@
80 ifeq ($(BUILD_TARGET),win32)
81 include Makefile-win32
82 else
83 include Makefile-linux
84 endif