17 BUILDID = $(shell (hg id || echo "unknown") | sed -e "s/[()]//g;s/+ /+/g;s/ /-/g" )
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,$@) -c -o $@ $<
32 $(CC) -nostartfiles -Wl,--export-dynamic -shared -o $@ $^ $(LDFLAGS)
38 CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC
39 CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security