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
15 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
Måns Rullgård
33afad5451
Add $(ELIBS) to example/test app link command
...
Originally committed as revision 18298 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
bbba084b4f
Make examples and test progs depend on libraries
...
Originally committed as revision 18297 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
92c093c1b5
Link tests/examples with -lfoo instead of libfoo.a
...
Originally committed as revision 18296 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
3fd422ff77
Move make rules applicable only to subdirs into subdir.mak
...
Originally committed as revision 18294 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
3c3e0680b5
Use $< automatic variable to simplify some commands.
...
Originally committed as revision 18143 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
93c021a242
Remove other shared lib names from linker command line for shared libs
...
Originally committed as revision 16103 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
25cd5cb33c
Generate pkg-config files in each library subdirectory so that they do
...
not clutter the root of the source tree.
Originally committed as revision 13780 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
0147b92ea5
Revert "Add version information to DLLs."
...
Revert "Forgot to commit changes to subdir.mak in last revision."
Originally committed as revision 13426 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
e188cb70d8
Forgot to commit changes to subdir.mak in last revision.
...
Originally committed as revision 13380 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
76ca42a8a0
move DEP_LIBS to common.mak
...
Originally committed as revision 12777 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
8a03404d4f
fix build with --build-suffix
...
Originally committed as revision 12776 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
8e255b8bda
replace some ifeq with prettier ifdef
...
Originally committed as revision 12764 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago