include config.mk include platform.mk # Targets all: info lib modules daemon install: lib-install modules-install daemon-install check: all tests clean: lib-clean modules-clean daemon-clean tests-clean doc-clean doc: doc-html .PHONY: all install check clean doc # Options ifdef COVERAGE CFLAGS += --coverage endif # Dependencies $(eval $(call find_lib,libknot)) $(eval $(call find_lib,libuv)) $(eval $(call find_alt,lua,luajit)) $(eval $(call find_alt,lua,lua5.2)) $(eval $(call find_alt,lua,lua-5.2)) $(eval $(call find_alt,lua,lua)) $(eval $(call find_lib,cmocka)) $(eval $(call find_bin,doxygen)) $(eval $(call find_bin,sphinx-build)) $(eval $(call find_bin,gccgo)) $(eval $(call find_python)) $(eval $(call find_lib,libmemcached,1.0)) $(eval $(call find_lib,hiredis)) # Work around luajit on OS X ifeq ($(PLATFORM), Darwin) ifneq (,$(findstring luajit, $(lua_LIBS))) lua_LIBS += -pagezero_size 10000 -image_base 100000000 endif endif CFLAGS += $(libknot_CFLAGS) $(libuv_CFLAGS) $(cmocka_CFLAGS) $(python_CFLAGS) $(lua_CFLAGS) # Sub-targets include help.mk include lib/lib.mk include daemon/daemon.mk include modules/modules.mk include tests/tests.mk include doc/doc.mk