summaryrefslogtreecommitdiff
path: root/build_tools/make_buildopts_h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-05-11 09:50:41 +0000
committerRussell Bryant <russell@russellbryant.com>2006-05-11 09:50:41 +0000
commit44d4ed1b37e389096db3e7c6e39638e7747ce075 (patch)
treef6300a9342ef9cdd3cad0c92b46bf88332b4f55d /build_tools/make_buildopts_h
parentd06427978c9234fc1d55bc8227776fda2af1f9b9 (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: https://origsvn.digium.com/svn/asterisk/trunk@26808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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