this is (in debian/rules) how i got my debian package built properly:
variables:
MAIN_NAME=sip-router LOCALBASE=$(CURDIR)/debian/$(MAIN_NAME) SCTP=1 MODULES= ... MODULES_S= ... MODULES_K= ...
configuration:
$(MAKE) cfg CFLAGS="$(CFLAGS)" SCTP=$(SCTP) MAIN_NAME=$(MAIN_NAME) LOCALBASE=$(LOCALBASE) prefix=/usr cfg_prefix=$(LOCALBASE) cfg_target=/etc/sip-router modules="$(MODULES)" modules_s="$(MODULES_S)" modules_k="$(MODULES_K)"
compilation:
CC="$(CC)" $(MAKE) all
installation:
CC="$(CC)" $(MAKE) install basedir=$(LOCALBASE)
improvements are welcome.
-- juha