|
@@ -11,15 +11,20 @@ include /usr/share/dpatch/dpatch.make
|
|
|
|
|
|
# These are used for cross-compiling and for saving the configure script
|
|
# These are used for cross-compiling and for saving the configure script
|
|
# from having to guess our platform (since we know it already)
|
|
# from having to guess our platform (since we know it already)
|
|
|
|
+#
|
|
|
|
+# See /usr/share/doc/autotools-dev/README.Debian.gz which suggests
|
|
|
|
+# this way of passing --build and --host. Also see the thread on
|
|
|
|
+# debian-devel './configure in debian/rules' from February/March 2006,
|
|
|
|
+# starting with <43FF212C.5020800@xs4all.nl> by Pjotr Kourzanov.
|
|
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
-CFLAGS ?= -Wall -g
|
|
|
|
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
|
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
|
confflags += --build $(DEB_HOST_GNU_TYPE)
|
|
confflags += --build $(DEB_HOST_GNU_TYPE)
|
|
else
|
|
else
|
|
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
|
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+CFLAGS ?= -Wall -g
|
|
|
|
|
|
LOCALHOST_IP ?= $(shell getent hosts localhost | awk '{print $$1}')
|
|
LOCALHOST_IP ?= $(shell getent hosts localhost | awk '{print $$1}')
|
|
|
|
|