2 # This Makefile is designed for use with main.mk in the root directory of
3 # this project. After including main.mk, the users makefile should contain:
5 # LSMDIR=$(TOP)/ext/lsm1/
6 # include $(LSMDIR)/Makefile
8 # The most useful targets are [lsmtest] and [lsm.so].
31 LSMTESTSRC
= $(LSMDIR
)/lsm-test
/lsmtest1.c
$(LSMDIR
)/lsm-test
/lsmtest2.c \
32 $(LSMDIR
)/lsm-test
/lsmtest3.c
$(LSMDIR
)/lsm-test
/lsmtest4.c \
33 $(LSMDIR
)/lsm-test
/lsmtest5.c
$(LSMDIR
)/lsm-test
/lsmtest6.c \
34 $(LSMDIR
)/lsm-test
/lsmtest7.c
$(LSMDIR
)/lsm-test
/lsmtest8.c \
35 $(LSMDIR
)/lsm-test
/lsmtest9.c \
36 $(LSMDIR
)/lsm-test
/lsmtest_datasource.c \
37 $(LSMDIR
)/lsm-test
/lsmtest_func.c
$(LSMDIR
)/lsm-test
/lsmtest_io.c \
38 $(LSMDIR
)/lsm-test
/lsmtest_main.c
$(LSMDIR
)/lsm-test
/lsmtest_mem.c \
39 $(LSMDIR
)/lsm-test
/lsmtest_tdb.c
$(LSMDIR
)/lsm-test
/lsmtest_tdb3.c \
40 $(LSMDIR
)/lsm-test
/lsmtest_util.c
$(LSMDIR
)/lsm-test
/lsmtest_win32.c
45 LSMOPTS
= -DLSM_MUTEX_PTHREADS
=1 -I
$(LSMDIR
)
48 $(TCCX
) -shared
-o lsm.so
$(LSMOBJ
)
50 %.o
: $(LSMDIR
)/%.c
$(LSMHDR
) sqlite3.h
51 $(TCCX
) $(LSMOPTS
) -c
$<
53 lsmtest
$(EXE
): $(LSMOBJ
) $(LSMTESTSRC
) $(LSMTESTHDR
) sqlite3.o
54 # $(TCPPX) -c $(TOP)/lsm-test/lsmtest_tdb2.cc
55 $(TCCX
) $(LSMOPTS
) $(LSMTESTSRC
) $(LSMOBJ
) sqlite3.o
-o lsmtest
$(EXE
) $(THREADLIB
)