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/
7 # include $(LSMDIR)/Makefile
9 # The most useful targets are [lsmtest] and [lsm.so].
32 LSMTESTSRC
= $(LSMDIR
)/lsm-test
/lsmtest1.c
$(LSMDIR
)/lsm-test
/lsmtest2.c \
33 $(LSMDIR
)/lsm-test
/lsmtest3.c
$(LSMDIR
)/lsm-test
/lsmtest4.c \
34 $(LSMDIR
)/lsm-test
/lsmtest5.c
$(LSMDIR
)/lsm-test
/lsmtest6.c \
35 $(LSMDIR
)/lsm-test
/lsmtest7.c
$(LSMDIR
)/lsm-test
/lsmtest8.c \
36 $(LSMDIR
)/lsm-test
/lsmtest9.c \
37 $(LSMDIR
)/lsm-test
/lsmtest_datasource.c \
38 $(LSMDIR
)/lsm-test
/lsmtest_func.c
$(LSMDIR
)/lsm-test
/lsmtest_io.c \
39 $(LSMDIR
)/lsm-test
/lsmtest_main.c
$(LSMDIR
)/lsm-test
/lsmtest_mem.c \
40 $(LSMDIR
)/lsm-test
/lsmtest_tdb.c
$(LSMDIR
)/lsm-test
/lsmtest_tdb3.c \
41 $(LSMDIR
)/lsm-test
/lsmtest_util.c
$(LSMDIR
)/lsm-test
/lsmtest_win32.c
46 LSMOPTS
+= -fPIC
-DLSM_MUTEX_PTHREADS
=1 -I
$(LSMDIR
) -DHAVE_ZLIB
49 $(TCCX
) -shared
-fPIC
-o lsm.so
$(LSMOBJ
)
51 %.o
: $(LSMDIR
)/%.c
$(LSMHDR
) sqlite3.h
52 $(TCCX
) $(LSMOPTS
) -c
$<
54 lsmtest
$(EXE
): $(LSMOBJ
) $(LSMTESTSRC
) $(LSMTESTHDR
) sqlite3.o
55 # $(TCPPX) -c $(TOP)/lsm-test/lsmtest_tdb2.cc
56 $(TCCX
) $(LSMOPTS
) $(LSMTESTSRC
) $(LSMOBJ
) sqlite3.o
-o lsmtest
$(EXE
) $(THREADLIB
) -lz