summaryrefslogtreecommitdiff
path: root/common.mak
Commit message (Collapse)AuthorAgeFilesLines
* build: add Solaris symbol versioningSean McGovern2015-10-111-1/+1
| | | | | | | | | | | | | | | | | | The versioning facility in the Solaris linker differs from Linux in 3 ways: 1. It does not support globs in linker scripts for symbol versioning -- this is a GNU extension. 2. The linker argument is '-M', instead of '--version-script'. 3. It is picky about line endings. Each symbol or directive must be on a line of it's own. Let's use make_sunver.pl from GCC to generate a version script that works correctly with the Solaris linker. It's function is to correctly expand the globs in the original generated version script. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* checkasm: Always link staticallyLuca Barbato2015-07-211-2/+3
| | | | Checkasm needs to use internal symbols that should not be made public.
* build: export library dependencies in ${name}_FFLIBSJanne Grunau2014-05-201-1/+1
| | | | | Removes an ugly $(if) to avoid conflicts with $(FFLIBS-) in the top-level MAkefile.
* build: do not append $(FFLIBS-) to $(FFLIBS) if $(NAME) is not definedJanne Grunau2014-05-141-1/+1
| | | | Avoids including disabled library Makefiles.
* build: handle library dependencies in configureJanne Grunau2014-05-131-1/+1
| | | | | Instead of setting FFLIBS in each library Makefile configure exports FFLIBS-$library in config.mak.
* Move all example programs to doc/examplesDiego Biurrun2014-02-161-1/+0
| | | | Also drop support for building examples in library directories.
* build: Add shorthand for HOSTCC compile macroDiego Biurrun2013-12-021-1/+1
|
* build: Allow specifying extra object files when linking HOSTPROGSDiego Biurrun2013-11-151-1/+1
|
* avformat/output-example: Declare link dependency on libswscale in the MakefileDiego Biurrun2013-10-031-1/+2
|
* Integrate lcov/gcov into LibavReinhard Tartler2013-04-051-1/+1
| | | | | | | The gcov/lcov are a common toolchain for visualizing code coverage with the GNU/Toolchain. The documentation and implementation of this integration was heavily inspired from the blog entry by Mike Melanson: http://multimedia.cx/eggs/using-lcov-with-ffmpeg/
* build: Move setting of SRC_DIR to the only place it is usedDiego Biurrun2013-03-271-0/+1
|
* build: Ensure that output directories for header objects are createdDiego Biurrun2013-02-201-1/+2
|
* build: fix 'clean' targetMans Rullgard2012-12-101-0/+6
| | | | | | | | This fixes removal of TOOLS as well as HOSTPROGS declared in the top-level Makefile. The clean target in common.mak needs to be eval'd since the variables used within are reset for each library. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: Include HEADERS-yes in the HEADERS variableMartin Storsjö2012-10-251-0/+1
| | | | | | | This makes sure the previously always installed public header lzo.h is installed if the LZO functionality is enabled. Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Properly remove object files while cleaningMans Rullgard2012-09-151-0/+3
| | | | | | | Previously, object files in, for example, compat/ were left after a clean or distclean was run. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* build: allow non-standard variations of linker -l/-L flagsMans Rullgard2012-08-291-1/+2
| | | | | | | | | This enables replacing the -l and -L flags used to specify the just-built libraries when linking the tools and shared libs with non-standard syntaxes. System library flags are already handled by the filtering mechanism in configure. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: add separate setting for host linkerMans Rullgard2012-08-281-1/+1
| | | | | | | This adds new HOSTLD and related settings for host linker allowing it to be different from HOSTCC. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: Use portable abstraction for linker/hostcc output file syntaxDiego Biurrun2012-08-271-1/+1
|
* build: change checkheaders to use regular build rulesMans Rullgard2012-08-071-3/+5
| | | | | | | | | | | | | Many compilers need special flags to compile *.h files as regular source code, if they will do so at all. Rather than hoping all compilers will have such a flag and adding mappings for it, create wrapper .c files for test building single headers. This allows using the regular rule for compiling C files without the need for special flags, and it also provides proper dependency tracking for these objects. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: use COMPILE template for HOSTOBJSMans Rullgard2012-07-261-2/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: Drop leftover .exp pattern from LIBSUFFIXES list.Diego Biurrun2012-05-051-1/+1
|
* build: Consistently handle conditional compilation for all optimization OBJS.Diego Biurrun2012-04-121-1/+1
|
* build: remove unnecessary FFLDFLAGS variableMans Rullgard2011-07-111-1/+0
| | | | | | | | This variable is set to the same value for all directories. Adding the -L flags directly to LDFLAGS is simpler and achieves the same thing. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: remove duplicates from order-only directory prerequisite listDiego Biurrun2011-07-101-3/+3
| | | | | This reduces startup latency for make invocations, which is especially noticeable on systems that are slow or have slow I/O, like Windows.
* build: rework rules for things in the tools dirMans Rullgard2011-07-101-0/+6
| | | | | | | | Declaring tools associated with each library in their respective makefiles allows these tools to easily depend on the correct prerequisites and link against the libs they need. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: create output directories as neededMans Rullgard2011-06-291-0/+6
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: replace some addprefix/addsuffix with substitution refsMans Rullgard2011-06-281-10/+10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: move basic rules and variables to main MakefileMans Rullgard2011-06-231-40/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: move special targets to end of main MakefileMans Rullgard2011-06-231-8/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: move vpath directives to main MakefileMans Rullgard2011-06-141-5/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: move ALLFFLIBS to a more logical placeMans Rullgard2011-06-141-2/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: remove empty $(OBJS) targetMans Rullgard2011-06-071-2/+0
| | | | | | | | This target was added to prevent some files being deleted by make when using chains of implicit rules. This is no longer required. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: clean up .PHONY listsMans Rullgard2011-06-061-2/+0
| | | | | | | This removes nonexisting targets from phony lists and puts them all in one place. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: move all (un)install* target aliases to toplevel MakefileMans Rullgard2011-06-061-5/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: remove stale dependencyMans Rullgard2011-06-061-2/+0
| | | | | | This dependency is implicitly covered elsewhere. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: do not add CFLAGS-yes to CFLAGSMans Rullgard2011-06-061-1/+0
| | | | | | CFLAGS-yes is never set so this serves no purpose. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: remove BUILD_ROOT variableMans Rullgard2011-05-291-9/+3
| | | | | | This variable is unnecessary as absolute paths are not required. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Include dependencies for test programsMans Rullgard2011-03-311-2/+2
| | | | | | | This makes sure the various *-test programs are correctly rebuilt when necessary. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove support for stripping executablesMans Rullgard2011-03-291-1/+1
| | | | | | | | Stripping is generally best left to package management tools, and since unstripped copies are kept in the build tree, any arguments about saving space (no matter how insignificant) are void. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-151-1/+1
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Create config.asm for use with yasmMåns Rullgård2010-09-031-0/+1
| | | | Originally committed as revision 25039 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove dep/depend targets and related variables.Diego Biurrun2010-08-171-4/+1
| | | | | | We no longer create dependency files directly, so the rules are now pointless. Originally committed as revision 24807 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add libavcore.Stefano Sabatini2010-07-211-1/+1
| | | | | | | | | | | The new library is meant to contain the core multimedia utilities for FFmpeg, to make them shareable between more libav* libraries. See thread: Subject: [FFmpeg-devel] [RFC] New library for shared non-generic libav* utils Date: Fri, 9 Jul 2010 01:07:40 +0200 Originally committed as revision 24393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Stop make complaining about moved/deleted headersMåns Rullgård2010-07-041-0/+4
| | | | Originally committed as revision 24041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add -I flags to HOSTCFLAGSMåns Rullgård2010-06-261-1/+4
| | | | Originally committed as revision 23805 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix brief make messages when CC etc are specified on command lineMåns Rullgård2010-06-261-2/+2
| | | | Originally committed as revision 23792 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ranlib silent in brief output modeMåns Rullgård2010-03-171-2/+2
| | | | | | Running ranlib is quick and uninteresting, no need to print it. Originally committed as revision 22582 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix brief make output for generated tablesMåns Rullgård2010-03-141-2/+2
| | | | Originally committed as revision 22526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove .SECONDARY directiveMåns Rullgård2010-03-101-1/+1
| | | | | | | | | The presence of the .SECONDARY directive caused thing to not always be correctly rebuilt. Mentioning the object files explicitly as targets gives the desired result of make not deleting them without unpleasant side-effects. Originally committed as revision 22422 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve version.h generationMåns Rullgård2010-03-101-8/+0
| | | | | | | | | | | Force version.sh to run whenever the version might have changed, regardless of what is being built. This is done by attaching the dependencies to a dummy file (.version) which is included from the makefile. As make will always attempt to rebuild any included files before considering other rules, this ensures that the real version.h is (re-)created before it is required by any source file. Originally committed as revision 22420 to svn://svn.ffmpeg.org/ffmpeg/trunk