17 BUILDID := "$(shell (git describe --long --dirty --all --abbrev=10 || echo "unknown"))"
19 MFLAGS+=BUILDID='${BUILDID}'
25 -include $(wildcard .deps/*.d)
28 @if [ ! -d .deps ]; then mkdir .deps || true; fi
29 $(CC) $(CFLAGS) -MMD -MF .deps/$(subst .o,.d,$@) -fPIC -c -o $@ $<
32 $(CC) -nostartfiles -Wl,--export-dynamic -shared -o $@ $^ $(LDFLAGS)
38 CFLAGS+=-I. -I.. -DBUILDID='${BUILDID}'
39 CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security