aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools/make_buildopts_h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 09:50:41 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 09:50:41 +0000
commit26a2b7c6d573ffeb1dcd690a5cf50223dee90e1b (patch)
treef6300a9342ef9cdd3cad0c92b46bf88332b4f55d /build_tools/make_buildopts_h
parent23875cea7917001e9fe79c4fdbb6ba6b9b04dc9a (diff)
change the CFLAGS controlled by menuselect to be placed in a header file
instead of being added to the compiler commands. This header file will be installed and modules built outside of the main tree will be able to use the same build options used to build the rest of Asterisk. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26808 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools/make_buildopts_h')
-rwxr-xr-xbuild_tools/make_buildopts_h13
1 files changed, 13 insertions, 0 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h
new file mode 100755
index 000000000..9ee20bc5a
--- /dev/null
+++ b/build_tools/make_buildopts_h
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cat << END
+/*
+ * buildopts.h
+ * Automatically generated
+ */
+
+END
+TMP=`grep MENUSELECT_CFLAGS menuselect.makeopts | sed s/MENUSELECT_CFLAGS\=//g`
+for x in ${TMP}; do
+ echo "#define ${x}"
+done