summaryrefslogtreecommitdiff
path: root/build_posix/Make.base
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-09-02 21:53:51 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-09-02 21:53:51 +1000
commitc545f4fc2943d94c4bcd57c162cadb3855f6974f (patch)
tree6b5eff905006f307d308506f420d0960a6a7e6cc /build_posix/Make.base
parent6ba3445126c94b40c68ae0f2daa2df0d9ca8451c (diff)
downloadmongo-c545f4fc2943d94c4bcd57c162cadb3855f6974f.tar.gz
Split out the Python and examples from the top level Makefile.
Diffstat (limited to 'build_posix/Make.base')
-rw-r--r--build_posix/Make.base30
1 files changed, 11 insertions, 19 deletions
diff --git a/build_posix/Make.base b/build_posix/Make.base
index e697697ca39..5aaf690e7ba 100644
--- a/build_posix/Make.base
+++ b/build_posix/Make.base
@@ -1,6 +1,16 @@
ACLOCAL_AMFLAGS = -I build_posix/aclocal
-SUBDIRS = . bench/tcbench ext/compressors/bzip2_compress test/format test/insert test/salvage test/thread
+if HAVE_BZIP2
+ BZBUILD = ext/compressors/bzip2_compress
+endif
+if PYTHON
+ PYBUILD = lang/python
+endif
+SUBDIRS = . \
+ bench/tcbench examples/c \
+ ext/compressors/nop_compress \
+ test/format test/insert test/salvage test/thread \
+ $(BZBUILD) $(PYBUILD)
wtdir = $(prefix)/wt
wt_LTLIBRARIES = libwiredtiger.la
@@ -11,10 +21,6 @@ wt_SOURCES = util_create.c util_dump.c util_dumpfile.c util_getopt.c \
util_load.c util_main.c util_printlog.c util_salvage.c util_stat.c \
util_verify.c util_verbose.c
-noinst_PROGRAMS = ex_access ex_all ex_call_center ex_config ex_cursor \
- ex_extending ex_hello ex_pack ex_process ex_schema ex_sequence \
- ex_stat ex_thread ex_tpcb ex_transaction
-
include_HEADERS= wiredtiger.h
INCLUDES= -I$(srcdir)/src/include
@@ -31,17 +37,3 @@ $(srcdir)/src/include/extern.h: prototype.chk
prototype.chk: $(libwiredtiger_la_SOURCES)
@(cd $(srcdir)/dist && sh s_prototypes) && touch $@
-
-if PYTHON
-PYSRC = $(srcdir)/lang/python
-if DEBUG
-PY_SETUP_DEBUG = -g
-endif
-all-local: _wiredtiger.so
-$(PYSRC)/wiredtiger_wrap.c: wiredtiger.h $(PYSRC)/wiredtiger.i
- @(cd $(PYSRC) && $(SWIG) -python -I$(abs_top_builddir) wiredtiger.i)
-
-_wiredtiger.so: $(wt_LTLIBRARIES) $(PYSRC)/wiredtiger_wrap.c
- @env CFLAGS="$(PYTHON_CFLAGS)" LDFLAGS="$(PYTHON_LDFLAGS)" \
- $(PYTHON) $(PYSRC)/setup.py build_ext -b . -t . -f $(PY_SETUP_DEBUG)
-endif