2015-11-16 19:00:22 +03:00
|
|
|
#
|
2017-06-01 19:13:57 +03:00
|
|
|
# This Makefile is designed for use with main.mk in the root directory of
|
|
|
|
# this project. After including main.mk, the users makefile should contain:
|
|
|
|
#
|
|
|
|
# LSMDIR=$(TOP)/ext/lsm1/
|
2017-07-14 18:42:11 +03:00
|
|
|
# LSMOPTS=-fPIC
|
2017-06-01 19:13:57 +03:00
|
|
|
# include $(LSMDIR)/Makefile
|
|
|
|
#
|
|
|
|
# The most useful targets are [lsmtest] and [lsm.so].
|
2015-11-16 19:00:22 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
LSMOBJ = \
|
|
|
|
lsm_ckpt.o \
|
|
|
|
lsm_file.o \
|
|
|
|
lsm_log.o \
|
|
|
|
lsm_main.o \
|
|
|
|
lsm_mem.o \
|
|
|
|
lsm_mutex.o \
|
|
|
|
lsm_shared.o \
|
|
|
|
lsm_sorted.o \
|
|
|
|
lsm_str.o \
|
|
|
|
lsm_tree.o \
|
|
|
|
lsm_unix.o \
|
2017-06-01 19:13:57 +03:00
|
|
|
lsm_win32.o \
|
2015-11-17 03:15:21 +03:00
|
|
|
lsm_varint.o \
|
|
|
|
lsm_vtab.o
|
2015-11-16 19:00:22 +03:00
|
|
|
|
|
|
|
LSMHDR = \
|
2017-06-01 19:13:57 +03:00
|
|
|
$(LSMDIR)/lsm.h \
|
|
|
|
$(LSMDIR)/lsmInt.h
|
|
|
|
|
|
|
|
LSMTESTSRC = $(LSMDIR)/lsm-test/lsmtest1.c $(LSMDIR)/lsm-test/lsmtest2.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest3.c $(LSMDIR)/lsm-test/lsmtest4.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest5.c $(LSMDIR)/lsm-test/lsmtest6.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest7.c $(LSMDIR)/lsm-test/lsmtest8.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest9.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest_datasource.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest_func.c $(LSMDIR)/lsm-test/lsmtest_io.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest_main.c $(LSMDIR)/lsm-test/lsmtest_mem.c \
|
|
|
|
$(LSMDIR)/lsm-test/lsmtest_tdb.c $(LSMDIR)/lsm-test/lsmtest_tdb3.c \
|
2017-06-28 01:27:54 +03:00
|
|
|
$(LSMDIR)/lsm-test/lsmtest_util.c $(LSMDIR)/lsm-test/lsmtest_win32.c
|
2015-11-16 19:00:22 +03:00
|
|
|
|
2017-06-01 19:13:57 +03:00
|
|
|
|
|
|
|
# all: lsm.so
|
2015-11-16 19:00:22 +03:00
|
|
|
|
2019-08-17 22:58:26 +03:00
|
|
|
LSMOPTS += -fPIC -DLSM_MUTEX_PTHREADS=1 -I$(LSMDIR) -DHAVE_ZLIB
|
2017-06-06 19:14:49 +03:00
|
|
|
|
2015-11-16 19:00:22 +03:00
|
|
|
lsm.so: $(LSMOBJ)
|
2019-08-17 22:58:26 +03:00
|
|
|
$(TCCX) -shared -fPIC -o lsm.so $(LSMOBJ)
|
2017-06-01 19:13:57 +03:00
|
|
|
|
2017-06-07 22:46:18 +03:00
|
|
|
%.o: $(LSMDIR)/%.c $(LSMHDR) sqlite3.h
|
2017-06-06 19:14:49 +03:00
|
|
|
$(TCCX) $(LSMOPTS) -c $<
|
2017-06-01 19:13:57 +03:00
|
|
|
|
2017-06-07 22:46:18 +03:00
|
|
|
lsmtest$(EXE): $(LSMOBJ) $(LSMTESTSRC) $(LSMTESTHDR) sqlite3.o
|
2017-06-01 19:13:57 +03:00
|
|
|
# $(TCPPX) -c $(TOP)/lsm-test/lsmtest_tdb2.cc
|
2017-11-08 14:14:53 +03:00
|
|
|
$(TCCX) $(LSMOPTS) $(LSMTESTSRC) $(LSMOBJ) sqlite3.o -o lsmtest$(EXE) $(THREADLIB) -lz
|