mirror of
https://github.com/radareorg/sdb.git
synced 2026-11-09 12:41:29 -10:00
49 lines
814 B
Makefile
49 lines
814 B
Makefile
.PHONY: all reset
|
|
|
|
BINS=nset siolpain fmt stack cas hook hook2 stress1 fmtarr ns
|
|
BINS+=bench-expire expire dumptwice syncget nsabuse drain merge
|
|
BINS+=chkkey
|
|
|
|
include sdb-test.mk
|
|
|
|
SCRIPTS=createfail.sh testgrep.sh delkey.sh
|
|
ALL=all
|
|
|
|
all: $(BINS) $(SCRIPTS) reset
|
|
@suite/run.sh
|
|
@$(MAKE) -C api
|
|
@$(MAKE) -C unit run
|
|
# @$(MAKE) -C gperf
|
|
|
|
me:
|
|
$(MAKE) -C ../src
|
|
$(MAKE)
|
|
|
|
ASAN_CFLAGS=-fsanitize=address -fsanitize=undefined
|
|
CFLAGS+=-I../include
|
|
|
|
asan:
|
|
$(MAKE) CFLAGS="${ASAN_CFLAGS} ${CFLAGS}" ALL=asan all
|
|
|
|
$(SCRIPTS):
|
|
./$@
|
|
|
|
$(BINS):
|
|
$(CC) -o $@ $@.c $(LDFLAGS) $(CFLAGS) $(SDB_CFLAGS) $(SDB_LDFLAGS)
|
|
bash -c "time ./$@"
|
|
#$(SHELL) -c "./$@"
|
|
|
|
b: $(BINS)
|
|
|
|
reset:
|
|
cd reset && $(MAKE) $(ALL)
|
|
|
|
add10k:
|
|
sh add10k.sh
|
|
|
|
clean:
|
|
rm -f f dumptwice.db
|
|
rm -f a test.db a.gz a.out $(BINS)
|
|
|
|
.PHONY: ${SCRIPTS} ${BINS} b
|