aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
AgeCommit message (Collapse)AuthorFilesLines
2010-05-11Fix issue #17302 a slightly different way (mad props to Qwell)tilghman1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@262321 f38db490-d61c-443f-a65b-d21fe96a405b
2010-05-10Allow compilation on Mac OS X 10.4 (Tiger)tilghman1-0/+3
(closes issue #17297) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue #17302) Reported by: jcovert git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@262151 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-16Backport chan_sip build fix for Mac OSX 10.6 from trunk.russell1-0/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@252928 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-28When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compilerseanbright1-0/+2
so we override any default optimization levels for a particular install. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@220717 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-21Ensure that user-provided CFLAGS and LDFLAGS are honored.kpfleming1-19/+13
This commit changes the build system so that user-provided flags (in ASTCFLAGS and ASTLDFLAGS) are supplied to the compiler/linker *after* all flags provided by the build system itself, so that the user can effectively override the build system's flags if desired. In addition, ASTCFLAGS and ASTLDFLAGS can now be provided *either* in the environment before running 'make', or as variable assignments on the 'make' command line. As a result, the use of COPTS and LDOPTS is no longer necessary, so they are no longer documented, but are still supported so as not to break existing build systems that supply them when building Asterisk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@207647 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18Improve the build system to *properly* remove unnecessary symbols from the ↵kpfleming1-2/+7
runtime global namespace. Along the way, change the prefixes on some internal-only API calls to use a common prefix. With these changes, for a module to export symbols into the global namespace, it must have *both* the AST_MODFLAG_GLOBAL_SYMBOLS flag and a linker script that allows the linker to leave the symbols exposed in the module's .so file (see res_odbc.exports for an example). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@182808 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18revert commit that included extranous changeskpfleming1-7/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@182807 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18Improve the build system to *properly* remove unnecessary symbols from the ↵kpfleming1-2/+7
runtime global namespace. Along the way, change the prefixes on some internal-only API calls to use a common prefix. With these changes, for a module to export symbols into the global namespace, it must have *both* the AST_MODFLAG_GLOBAL_SYMBOLS flag and a linker script that allows the linker to leave the symbols exposed in the module's .so file (see res_odbc.exports for an example). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@182802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26simplify (and slightly bug-fix) the recent developer-oriented COMPILE_DOUBLE ↵kpfleming1-10/+7
mode add channels/busy.h and channels/ringtone.h to the repository instead of generating them repeatedtly; most users do not change the settings to build them, but the Makefile rules are still there if they wish to do so ensure that 'make clean' removes dependency files for .i files that are created in COMPILE_DOUBLE mode git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@159476 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19the gcc optimizer frequently finds broken code (use of uninitalized ↵kpfleming1-24/+75
variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems. with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course). while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@157859 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-15when an individual directory dist-clean is run, run clean in that directory ↵kpfleming1-1/+1
first, and when running top-level dist-clean, do not run subdirectory clean operations twice git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@157163 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22add rules to create preprocessor output... useful for debugging macroskpfleming1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132784 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-30pay attention to *all* header files for dependency tracking, not just the ↵kpfleming1-3/+3
local ones (inspired by r578 of asterisk-addons by tilghman) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114875 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11get chan_vpb to build properly in dev modekpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@107713 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-08Enable file dependency tracking for _all_ builds, and not just for builds withrussell1-12/+0
dev-mode enabled. I have seen enough problems caused by this that I don't think it's worth keeping. I want to continue to encourage anybody that is interested to continue to run Asterisk from svn. Furthermore, I do not want their systems to break when we change a structure definition in a header file. :) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84957 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01Add dist-clean support for subdirs.qwell1-0/+4
Change h323 to only remove the Makefile on a dist-clean, rather than a clean. This fixes a bug I found with trying to run make after a make clean git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84291 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-15Filter out a few CFLAGS that are not valid CXXFLAGS.russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@50994 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-15use the ACX_PTHREAD macro from the Autoconf macro archive for setting up ↵kpfleming1-9/+9
compiler pthreads support... should improve portability to platforms with unusual pthreads requirements git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@50867 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-03various Makefile improvements to get chan_vpb (and any other C++ modules) to ↵kpfleming1-1/+9
build properly git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49282 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16simplify dependency tracking system, using the compiler's built-in method ↵kpfleming1-0/+8
for generating them, and only doing dependency tracking if developer mode is enabled via the configure script git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48525 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29fix a few build system bugs, and convert Makefiles to be compatible with GNU ↵kpfleming1-56/+21
make 3.80 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44055 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because ↵kpfleming1-6/+6
they are also then used for non-Asterisk components (like menuselect); use our own variables instead git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44008 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29another cross-compile fixkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43996 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09more makefile tweaks to keep targets from being run when they don't need to bekpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21oops... no pattern rules for bison/flexkpfleming1-4/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40724 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-6/+17
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-16use a couple of variables to remove duplicate definitionsrizzo1-69/+29
of the various rules for the NOISY/!NOISY cases. Approved by: kevin git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37744 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-16typo LDFAGS -> LDFLLAGSrizzo1-2/+2
detected by: noisy build on FreeBSD git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37719 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15use LDFLAGS and LIBS properly, and allow dependencies to provide LDFLAGS if ↵kpfleming1-8/+8
needed (although none do today) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06add missing filekpfleming1-0/+133
ignore .oo files from C++ modules git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37274 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06move rules file to prepare for generic rules filekpfleming1-53/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24commit missing filekpfleming1-0/+53
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35854 f38db490-d61c-443f-a65b-d21fe96a405b