blob: a7ab8cb269812af79bffe80f86aa05be8f9de534 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
AM_CPPFLAGS = -DWIREDTIGER_TEST_COMPRESS_RAW \
-DBERKELEY_DB_PATH=\"$(BERKELEY_DB_PATH)\" \
-I$(top_builddir) -I$(top_srcdir)/src/include \
-I$(BERKELEY_DB_PATH)/include
noinst_PROGRAMS = t
noinst_SCRIPTS = s_dumpcmp
t_SOURCES =\
config.h format.h backup.c bdb.c bulk.c compact.c config.c ops.c \
t.c util.c wts.c
t_LDADD = $(top_builddir)/libwiredtiger.la -L$(BERKELEY_DB_PATH)/lib -ldb
t_LDFLAGS = -static
noinst_LTLIBRARIES = raw_compress.la
#noinst_LTLIBRARIES = lzo_compress.la raw_compress.la
# libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well
# as installation, it will only build static libraries. As far as I can tell,
# the "approved" libtool way to turn them back on is by adding -rpath.
#lzo_compress_la_SOURCES = lzo_compress.c
#lzo_compress_la_LIBADD = -llzo2 -lm
#lzo_compress_la_LDFLAGS = -avoid-version -module -rpath /nowhere
# libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well
# as installation, it will only build static libraries. As far as I can tell,
# the "approved" libtool way to turn them back on is by adding -rpath.
raw_compress_la_SOURCES = bzip2_compress.c
raw_compress_la_LIBADD = -lbz2
raw_compress_la_LDFLAGS = -avoid-version -module -rpath /nowhere
s_dumpcmp: $(srcdir)/s_dumpcmp.sh
cp $(srcdir)/s_dumpcmp.sh $@
chmod +x $@
# We build bzip_compress.c with special behaviors, retrieve our own local copy.
bzip2_compress.c: $(srcdir)/../../ext/compressors/bzip2/bzip2_compress.c
cp $? .
backup:
rm -rf BACKUP && cp -p -r RUNDIR BACKUP
TESTS = smoke.sh
clean-local:
rm -rf RUNDIR *.core bzip2_compress.c
|