mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
use gcc-4.2 on debian4
git-svn-id: file:///svn/tokudb@3891 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
@@ -28,8 +28,8 @@ long long cachesize = 128*1024*1024;
|
|||||||
|
|
||||||
#define STRINGIFY2(s) #s
|
#define STRINGIFY2(s) #s
|
||||||
#define STRINGIFY(s) STRINGIFY2(s)
|
#define STRINGIFY(s) STRINGIFY2(s)
|
||||||
char *dbdir = "./bench." STRINGIFY(DIRSUF) "/"; /* DIRSUF is passed in as a -D argument to the compiler. */;
|
char dbdir[] = "./bench." STRINGIFY(DIRSUF) "/"; /* DIRSUF is passed in as a -D argument to the compiler. */;
|
||||||
char *dbfilename = "bench.db";
|
char dbfilename[] = "bench.db";
|
||||||
char *dbname;
|
char *dbname;
|
||||||
|
|
||||||
DbEnv *dbenv;
|
DbEnv *dbenv;
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ RANGETREE_BINS = range_tree/rangetree.o range_tree/tokuredblack.o
|
|||||||
LOCKTREE_BINS = lock_tree/locktree.o lock_tree/rth.o lock_tree/lth.o lock_tree/idlth.o lock_tree/db_id.o $(RANGETREE_BINS)
|
LOCKTREE_BINS = lock_tree/locktree.o lock_tree/rth.o lock_tree/lth.o lock_tree/idlth.o lock_tree/db_id.o $(RANGETREE_BINS)
|
||||||
|
|
||||||
$(LIBRARY): $(DBBINS) | buildlocktrees
|
$(LIBRARY): $(DBBINS) | buildlocktrees
|
||||||
cc $(CPPFLAGS) $^ $(LOCKTREE_BINS) $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME)
|
$(CC) $(CPPFLAGS) $^ $(LOCKTREE_BINS) $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME)
|
||||||
|
|
||||||
$(LIBNAME).a: $(DBBINS) | buildlocktrees
|
$(LIBNAME).a: $(DBBINS) | buildlocktrees
|
||||||
$(AR) rv $@ $^ $(LOCKTREE_BINS)
|
$(AR) rv $@ $^ $(LOCKTREE_BINS)
|
||||||
@@ -90,7 +90,7 @@ $(LIBNAME).a: $(DBBINS) | buildlocktrees
|
|||||||
$(LIBNAME).a(ydb.o): ydb.o
|
$(LIBNAME).a(ydb.o): ydb.o
|
||||||
|
|
||||||
$(TLIBRARY): $(TDBBINS) | buildlocktrees
|
$(TLIBRARY): $(TDBBINS) | buildlocktrees
|
||||||
cc $(CPPFLAGS) $^ $(LOCKTREE_BINS) $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME)
|
$(CC) $(CPPFLAGS) $^ $(LOCKTREE_BINS) $(SHARED) -o $@ $(CFLAGS) -lz $(RPATHNAME)
|
||||||
|
|
||||||
$(TLIBNAME).a: $(TDBBINS) | buildlocktrees
|
$(TLIBNAME).a: $(TDBBINS) | buildlocktrees
|
||||||
$(AR) rv $@ $^ $(LOCKTREE_BINS)
|
$(AR) rv $@ $^ $(LOCKTREE_BINS)
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ locktree.o: $(LT_TLOG)
|
|||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
locktree_global_readset.o: locktree.c locktree.h
|
locktree_global_readset.o: locktree.c locktree.h
|
||||||
cc $(CFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
locktree_no_global_readset.o: locktree.c locktree.h
|
locktree_no_global_readset.o: locktree.c locktree.h
|
||||||
cc $(CFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ -DTOKU_RT_NOOVERLAPS
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ -DTOKU_RT_NOOVERLAPS
|
||||||
|
|
||||||
rth.o: rth.c rth.h
|
rth.o: rth.c rth.h
|
||||||
|
|
||||||
|
|||||||
@@ -118,13 +118,13 @@ foo:
|
|||||||
echo ../locktree.h test.h $(LT_LINEAR)
|
echo ../locktree.h test.h $(LT_LINEAR)
|
||||||
|
|
||||||
%.lin: %.c ../locktree.h test.h $(LT_LINEAR)
|
%.lin: %.c ../locktree.h test.h $(LT_LINEAR)
|
||||||
cc -DDIR=\"dir.$<.lin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LINEAR) $(NEWBRT_BINS) -lz
|
$(CC) -DDIR=\"dir.$<.lin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LINEAR) $(NEWBRT_BINS) -lz
|
||||||
%.tlin: %.c ../locktree.h test.h $(LT_TLINEAR)
|
%.tlin: %.c ../locktree.h test.h $(LT_TLINEAR)
|
||||||
cc -DDIR=\"dir.$<.tlin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLINEAR) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS -lz
|
$(CC) -DDIR=\"dir.$<.tlin\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLINEAR) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS -lz
|
||||||
%.tlog: %.c ../locktree.h test.h $(LT_TLOG)
|
%.tlog: %.c ../locktree.h test.h $(LT_TLOG)
|
||||||
cc -DDIR=\"dir.$<.tlog\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLOG) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS -lz
|
$(CC) -DDIR=\"dir.$<.tlog\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_TLOG) $(NEWBRT_BINS) -DTOKU_RT_NOOVERLAPS -lz
|
||||||
%.log: %.c ../locktree.h test.h $(LT_LOG)
|
%.log: %.c ../locktree.h test.h $(LT_LOG)
|
||||||
cc -DDIR=\"dir.$<.log\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LOG) $(NEWBRT_BINS) -lz
|
$(CC) -DDIR=\"dir.$<.log\" $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LT_LOG) $(NEWBRT_BINS) -lz
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
||||||
|
|||||||
@@ -93,11 +93,11 @@ LOG_BINS = ../log.o
|
|||||||
HEADERS=../rangetree.h ../rangetree-internal.h test.h
|
HEADERS=../rangetree.h ../rangetree-internal.h test.h
|
||||||
|
|
||||||
%.lin: %.c $(HEADERS) $(LINEAR_BINS)
|
%.lin: %.c $(HEADERS) $(LINEAR_BINS)
|
||||||
cc -DDIR=\"dir.$<.lin\" $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LINEAR_BINS)
|
$(CC) -DDIR=\"dir.$<.lin\" $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LINEAR_BINS)
|
||||||
%.tlog: %.c $(HEADERS) $(TLOG_BINS)
|
%.tlog: %.c $(HEADERS) $(TLOG_BINS)
|
||||||
cc -DDIR=\"dir.$<.log\" $(CFLAGS) $(CPPFLAGS) $< -o $@ $(TLOG_BINS) -DTOKU_RT_NOOVERLAPS
|
$(CC) -DDIR=\"dir.$<.log\" $(CFLAGS) $(CPPFLAGS) $< -o $@ $(TLOG_BINS) -DTOKU_RT_NOOVERLAPS
|
||||||
%.log: %.c $(HEADERS) $(LOG_BINS)
|
%.log: %.c $(HEADERS) $(LOG_BINS)
|
||||||
cc -DDIR=\"dir.$<.log\" $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LOG_BINS)
|
$(CC) -DDIR=\"dir.$<.log\" $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LOG_BINS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
rm -f $(ALL_TESTS) *.o *.gcno *.gcda *.gcov
|
||||||
|
|||||||
@@ -139,11 +139,11 @@ libs:
|
|||||||
cd ..;make
|
cd ..;make
|
||||||
|
|
||||||
%.bdb: %.c
|
%.bdb: %.c
|
||||||
$(UNSETTOKUENV) cc -DENVDIR=\"dir.$<.bdb\" $(BDB_CPPFLAGS) -DUSE_BDB -DIS_TDB=0 $(CFLAGS) $< $(BDB_LDFLAGS) -ldb -o $@
|
$(UNSETTOKUENV) $(CC) -DENVDIR=\"dir.$<.bdb\" $(BDB_CPPFLAGS) -DUSE_BDB -DIS_TDB=0 $(CFLAGS) $< $(BDB_LDFLAGS) -ldb -o $@
|
||||||
%.tdb: %.c
|
%.tdb: %.c
|
||||||
$(SETTOKUENV) cc -DENVDIR=\"dir.$<.tdb\" -DUSE_TDB -DIS_TDB=1 $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@
|
$(SETTOKUENV) $(CC) -DENVDIR=\"dir.$<.tdb\" -DUSE_TDB -DIS_TDB=1 $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@
|
||||||
%.tdbt: %.c
|
%.tdbt: %.c
|
||||||
$(SETTOKUENV) cc -DENVDIR=\"dir.$<.tdb\" -DUSE_TDB -DIS_TDB=1 $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_TRACELOADLIBES) $< -o $@
|
$(SETTOKUENV) $(CC) -DENVDIR=\"dir.$<.tdb\" -DUSE_TDB -DIS_TDB=1 $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_TRACELOADLIBES) $< -o $@
|
||||||
|
|
||||||
.PHONY: %.recover
|
.PHONY: %.recover
|
||||||
TLRECOVER = 2 3 4 5 6 7 8 9 10
|
TLRECOVER = 2 3 4 5 6 7 8 9 10
|
||||||
|
|||||||
Reference in New Issue
Block a user