ifeq '$(CFLAGS)' '' CFLAGS+=-O2 -march=native -flto=auto endif CFLAGS+=-MMD -Wall -Wextra -Werror -Wdouble-promotion -Wno-unused-parameter LDLIBS=-lsqlite3 -lcrypto DEPS=$(filter-out etc.init.d, $(wildcard *.d)) -include $(DEPS) %:%.c $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $< $(LDLIBS) genulid: ( cd tools; $(MAKE) $@ ) bcrypt_tool: ( cd tools; $(MAKE) $@ ) .PHONY: clean clean: rm srv