mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
4583e33b84
git-svn-id: file:///svn/toku/tokudb@32364 c7de825b-a66e-492c-adef-691d508d4ae1
20 lines
551 B
Makefile
20 lines
551 B
Makefile
SRCS = $(wildcard *.c)
|
|
TARGETS = $(patsubst %.c,%,$(SRCS)) $(patsubst %.c,%-bdb,$(SRCS))
|
|
CPPFLAGS = -I../include -D_GNU_SOURCE
|
|
CFLAGS = -g -std=c99 -Wall
|
|
LIBTOKUDB = tokudb
|
|
LDFLAGS = -L../lib -l$(LIBTOKUDB) -ltokuportability -Wl,-rpath,../lib
|
|
|
|
default: $(TARGETS)
|
|
|
|
%-bdb: %.c
|
|
$(CC) -D_GNU_SOURCE -DBDB $(CFLAGS) $^ -o $@ -ldb
|
|
|
|
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.* update.env.* insertm.env.*
|