Signed-off-by: Pierre Habouzit <madcoder@debian.org>
# see AUTHORS and source files for details #
##############################################################################
-prefix ?= /usr/local
-
-PROGRAMS = postlicyd pfix-srsd
-LIBS = common
-SUBDIRS = $(LIBS) $(PROGRAMS)
+PROGDIRS = postlicyd pfix-srsd
+LIBDIRS = common
+SUBDIRS = $(LIBDIRS) $(PROGDIRS)
# RULES ###################################################################{{{
.PHONY: clean distclean install install-% %-recurse
###########################################################################}}}
+
+include mk/common.mk
__DIR__:=$(realpath $(dir $(lastword $(MAKEFILE_LIST))))
-include ../mk/cflags.mk
+include $(__DIR__)/cflags.mk
-prefix ?= /usr/local
+prefix ?= /usr/local
LDFLAGSBASE += $(if $(DARWIN),-L/opt/local/lib,-Wl,-warn-common)
CFLAGSBASE += --std=gnu99 -I../ -I../common $(if $(DARWIN),-I/opt/local/include,)
ASCIIDOC = asciidoc -f $(__DIR__)/asciidoc.conf -d manpage \