aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-11-19 16:10:28 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-11-19 16:10:28 +0100
commitd031104737be739498a4de7b3c20fe178f909e03 (patch)
treee91e21abc5d90713624732d8501a78b23be6157d /debian/rules
parent65f882e05bcd8a1a273e5c0fb237d215666c946e (diff)
downloadnx-libs-d031104737be739498a4de7b3c20fe178f909e03.tar.gz
nx-libs-d031104737be739498a4de7b3c20fe178f909e03.tar.bz2
nx-libs-d031104737be739498a4de7b3c20fe178f909e03.zip
add /debian folder
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..ca5396072
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+%:
+ LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh $@
+
+override_dh_auto_clean:
+ rm -Rf nx-X11/.build-exports
+ LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_clean
+
+override_dh_auto_build:
+ debian/pre-build-nx.sh
+ LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_build
+ debian/post-build-nx.sh
+
+override_dh_auto_install:
+