Diego Biurrun
8f7c26e392
build: Use portable abstraction for linker/hostcc output file syntax
13 years ago
Diego Biurrun
a2b4d1df52
build: Remove all installed headers and header directories on uninstall
13 years ago
Mans Rullgard
dfd9159f3d
build: change checkheaders to use regular build rules
...
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>
13 years ago
Diego Biurrun
755834e94f
build: Rename YASMDEP variable to DEPYASM for consistency
13 years ago
Diego Biurrun
e7e19b15c7
build: Only clean the architecture subdirectory we build for.
...
This allows simplifying the Makefiles; it is no longer necessary to register
arch subdirectory Makefiles, just putting them in place is enough.
13 years ago
Mans Rullgard
0ea5b44275
build: link test programs with static libraries
...
Many of the test programs directly access internal symbols not
exported from the shared libraries. This allows tests to run
when configured with shared libraries.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
144904e901
build: rename subdir.mak ---> library.mak
13 years ago
Luca Barbato
8a54bfe83f
build: make examples build normally
...
The link target was missing $(EXAMPLES)
14 years ago
Mans Rullgard
ca9036155d
build: remove unnecessary FFLDFLAGS variable
...
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>
14 years ago
Mans Rullgard
28e1c97916
build: rework rules for things in the tools dir
...
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>
14 years ago
Mans Rullgard
2f138f0b7c
build: clean up library installation rules
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
57b4a3dd2b
build: include sub-makefiles using full path instead of symlinks
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
659aa20e56
build: improve rules for test programs
...
This generates dependencies for the *-test.o files ensuring
rebuilds when necessary.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
729f953fb5
build: Add DEP_LIBS dependency directly to the shared library build rule.
...
The dependency was added conditional to a variable that is always defined,
so it is safe to add it directly.
14 years ago
Mans Rullgard
f038cf3c74
build: remove SRC_PATH_BARE variable
...
Setting SRC_PATH to "." when building in-tree removes the need
for a quoted version of the source path since out-of-tree builds
are not possible if the pathname contains spaces.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
dc6632f119
build: simplify commands for clean target
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e0be794a71
Remove support for stripping executables
...
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>
14 years ago
Ramiro Polla
a854bcdbec
fix building test programs with gnu make 3.82
...
Test programs may be named either %.c or %-test.c. In some cases (ie. fft),
both files exist and make has to choose which rule to use. Up to gnu make
3.81, rules were applied in definition order, in this case favouring the
generic %.c rule from common.mak. gnu make 3.82 uses a shortest stem first
order, applying definition order for same length stems. In this case,
%-test.c must come first in order for make to pick the proper source file.
Originally committed as revision 25918 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
838c7c7407
Remove $(MSG) override for install-lib targets
...
This is no longer needed and causes incorrect output in some cases.
Originally committed as revision 22583 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
0c8cc2c4d8
Reorder some make rules
...
I like it better this way.
Originally committed as revision 22397 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
d8e117ddfe
Remove superflous ifdef CONFIG_{STATIC,SHARED} in makefiles
...
Originally committed as revision 22396 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
451db9832c
Simplify static/shared build rules
...
Originally committed as revision 22394 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
8c5239b382
Move some make rules outside of eval'd block
...
These rules use only global variables and thus do not need to be expanded.
Originally committed as revision 22393 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
477b338266
cosmetic: move some makefile variable definitions
...
Originally committed as revision 22392 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2a5500b13e
Add TESTOBJS make variable for extra objects used by test apps
...
Originally committed as revision 22335 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
09ad80855c
Define HAVE_AV_CONFIG_H for checkheaders in libs
...
Originally committed as revision 22332 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2f8ba7fc74
Define HAVE_AV_CONFIG_H when building test apps
...
Originally committed as revision 22330 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
72c2bdebcf
Define HAVE_AV_CONFIG_H only when building libraries
...
Originally committed as revision 22294 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
5654067341
10l: fix make install with only shared libs
...
Originally committed as revision 22280 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
bfca777713
Fix install with shared libs on weird systems
...
Originally committed as revision 22246 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
6cfac0e908
Fix make install
...
Originally committed as revision 22245 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
63611f31e8
Prettify make output
...
This gives brief messages from make by default. For full command
echoing, add V=1 to make command line.
Originally committed as revision 22244 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
34512bca0e
Split install-headers target and simplify rules
...
Originally committed as revision 22243 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
fd676deb96
Add INSTALL makefile variable
...
Originally committed as revision 22242 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
b578357e59
Use mkdir -p to create directories
...
Originally committed as revision 22241 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a4aea515b0
Add YASMDEP variable; use for deps on yasm files
...
Originally committed as revision 22239 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
50e10cbd7a
Use $(RM) to delete files
...
Originally committed as revision 22234 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
d3cb93b374
Revert r21226, it was a joke:
...
Get one step closer to world domination.
Remove "make uninstall".
Originally committed as revision 21466 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
38d7ad1954
Use $(CC_O) in %-test.o rules
...
Originally committed as revision 21350 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
aa310a9fc7
Add rules to install generated headers
...
Originally committed as revision 21320 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a482e61bd6
Add symbol versioning for shared libraries
...
Based on patch by Reinhard Tartler <siretart tauware de>
Originally committed as revision 21236 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
93fe7eb68d
Get one step closer to world domination.
...
Remove "make uninstall".
Originally committed as revision 21226 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
de4070b520
Add generic rules for building helpers with HOSTCC
...
Originally committed as revision 20412 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
e273b0389f
Makefile cosmetics
...
Originally committed as revision 20410 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
b7c10b2a2b
Fix dependency generation for yasm assembler files
...
Originally committed as revision 19683 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
bea81a52c9
Replace BUILD_{SHARED,STATIC} with CONFIG_ counterparts
...
Originally committed as revision 19527 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
b0f0c43051
Use CPPFLAGS when building tests
...
Originally committed as revision 19446 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
684b28e09c
Use LD for linking, default to same as CC
...
Originally committed as revision 19407 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
d349685bb9
Create shared libs correctly, fix mingw build
...
Originally committed as revision 18884 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
9292bd7725
Remove example programs with a wildcard expression.
...
Originally committed as revision 18632 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago