Initial work on porting lsmtest to Win32.
[sqlite.git] / ext / lsm1 / Makefile
blob527faa0d1bb77916815930d31323a566b79aef27
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].
11 LSMOBJ = \
12 lsm_ckpt.o \
13 lsm_file.o \
14 lsm_log.o \
15 lsm_main.o \
16 lsm_mem.o \
17 lsm_mutex.o \
18 lsm_shared.o \
19 lsm_sorted.o \
20 lsm_str.o \
21 lsm_tree.o \
22 lsm_unix.o \
23 lsm_win32.o \
24 lsm_varint.o \
25 lsm_vtab.o
27 LSMHDR = \
28 $(LSMDIR)/lsm.h \
29 $(LSMDIR)/lsmInt.h
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
43 # all: lsm.so
45 LSMOPTS = -DLSM_MUTEX_PTHREADS=1 -I$(LSMDIR)
47 lsm.so: $(LSMOBJ)
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)