mariadb/release/examples/Makefile
Rich Prohaska 6c1cae70d4 #3379 benchmark put multiple refs[t:3379]
git-svn-id: file:///svn/toku/tokudb@29571 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:38 -04:00

28 lines
765 B
Makefile

TARGETS = db-insert db-insert-bdb db-scan db-scan-bdb db-update db-update-bdb db-insert-multiple
CPPFLAGS = -I../include -D_GNU_SOURCE
CFLAGS = -g -std=c99 -Wall -Werror
LIBTOKUDB = tokudb
LDFLAGS = -L../lib -l$(LIBTOKUDB) -Wl,-rpath,../lib
default: $(TARGETS)
db-insert-bdb: db-insert.c
cc -D_GNU_SOURCE -DBDB $(CFLAGS) db-insert.c -o db-insert-bdb -ldb
db-scan-bdb: db-scan.c
cc -D_GNU_SOURCE -DBDB $(CFLAGS) db-scan.c -o db-scan-bdb -ldb
db-update-bdb: db-update.c
cc -D_GNU_SOURCE -DBDB $(CFLAGS) db-update.c -o db-update-bdb -ldb
default: db-insert
check: $(TARGETS)
./db-insert -x && ./db-scan --lwc --prelock --prelockflag
checknox: $(TARGETS)
./db-insert && ./db-scan --nox --lwc --prelock --prelockflag
clean:
rm -rf $(TARGETS) bench.*