mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-08 13:01:23 +00:00
The pseudo random byte wrapper function used the intel instructions so that it could deal with high call rates, like initializing random node priorities for a large treap. But this is obviously not remotely portable and has the annoying habit of tripping up versions of valgrind that haven't yet learned about these instructions. We don't actually have high bandwidth callers so let's back off and just let openssl take care of this for us. Signed-off-by: Zach Brown <zab@versity.com>
35 lines
597 B
Makefile
35 lines
597 B
Makefile
CFLAGS := -Wall -O2 -Werror -D_FILE_OFFSET_BITS=64 -g -msse4.2 \
|
|
-fno-strict-aliasing
|
|
|
|
BIN := src/scoutfs
|
|
OBJ := $(patsubst %.c,%.o,$(wildcard src/*.c))
|
|
DEPS := $(wildcard */*.d)
|
|
|
|
all: $(BIN)
|
|
|
|
ifneq ($(DEPS),)
|
|
-include $(DEPS)
|
|
endif
|
|
|
|
ifeq ($(V), )
|
|
QU = @echo
|
|
VE = @
|
|
else
|
|
QU = @:
|
|
VE =
|
|
endif
|
|
|
|
$(BIN): $(OBJ)
|
|
$(QU) [BIN $@]
|
|
$(VE)gcc -o $@ $^ -luuid -lm -lcrypto
|
|
|
|
%.o %.d: %.c Makefile sparse.sh
|
|
$(QU) [CC $<]
|
|
$(VE)gcc $(CFLAGS) -MD -MP -MF $*.d -c $< -o $*.o
|
|
$(QU) [SP $<]
|
|
$(VE)./sparse.sh -Wbitwise -D__CHECKER__ $(CFLAGS) $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@rm -f $(BIN) $(OBJ) $(DEPS) .sparse.*
|