Signed-off-by: Pierre Habouzit <madcoder@debian.org>
# see AUTHORS and source files for details #
##############################################################################
# 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 ###################################################################{{{
# RULES ###################################################################{{{
.PHONY: clean distclean install install-% %-recurse
###########################################################################}}}
.PHONY: clean distclean install install-% %-recurse
###########################################################################}}}
__DIR__:=$(realpath $(dir $(lastword $(MAKEFILE_LIST))))
__DIR__:=$(realpath $(dir $(lastword $(MAKEFILE_LIST))))
+include $(__DIR__)/cflags.mk
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 \
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 \