Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
5e27ec28
Commit
5e27ec28
authored
13 years ago
by
Mans Rullgard
Browse files
Options
Downloads
Patches
Plain Diff
build: create output directories as needed
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
da55ee6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+6
-1
6 additions, 1 deletion
Makefile
common.mak
+6
-0
6 additions, 0 deletions
common.mak
configure
+5
-26
5 additions, 26 deletions
configure
doc/Makefile
+3
-0
3 additions, 0 deletions
doc/Makefile
with
20 additions
and
27 deletions
Makefile
+
6
−
1
View file @
5e27ec28
...
...
@@ -122,9 +122,11 @@ alltools: $(TOOLS)
tools/%$(EXESUF)
:
tools/%.o
$(
LD
)
$(
FF_LDFLAGS
)
-o
$@
$<
$(
FF_EXTRALIBS
)
tools/%.o
:
tools/%.c
tools/%.o
:
tools/%.c
| tools
$(
CC
)
$(
CPPFLAGS
)
$(
CFLAGS
)
-c
$(
CC_O
)
$<
OBJDIRS
+=
tools
-include
$(wildcard tools/*.d)
VERSION_SH
=
$(
SRC_PATH
)
/version.sh
...
...
@@ -185,6 +187,9 @@ check: test checkheaders
include
$(SRC_PATH)/doc/Makefile
include
$(SRC_PATH)/tests/Makefile
$(sort $(OBJDIRS))
:
$(
Q
)
mkdir
-p
$@
# Dummy rule to stop make trying to rebuild removed or renamed headers
%.h
:
@
:
...
...
This diff is collapsed.
Click to expand it.
common.mak
+
6
−
0
View file @
5e27ec28
...
...
@@ -34,6 +34,12 @@ $(HOSTOBJS): %.o: %.c
$(HOSTPROGS)
:
%$(HOSTEXESUF): %.o
$(
HOSTCC
)
$(
HOSTLDFLAGS
)
-o
$@
$<
$(
HOSTLIBS
)
$(OBJS)
:
| $(dir $(OBJS))
$(HOSTOBJS)
:
| $(dir $(HOSTOBJS))
$(TESTOBJS)
:
| $(dir $(TESTOBJS))
OBJDIRS
:=
$(
OBJDIRS
)
$(
dir
$(
OBJS
)
$(
HOSTOBJS
)
$(
TESTOBJS
))
CLEANSUFFIXES
=
*
.d
*
.o
*
~
*
.ho
*
.map
*
.ver
DISTCLEANSUFFIXES
=
*
.pc
LIBSUFFIXES
=
*
.a
*
.lib
*
.so
*
.so.
*
*
.dylib
*
.dll
*
.def
*
.dll.a
*
.exp
...
...
This diff is collapsed.
Click to expand it.
configure
+
5
−
26
View file @
5e27ec28
...
...
@@ -875,9 +875,9 @@ apply(){
}
cp_if_changed
(){
cmp
-s
"
$1
"
"
$2
"
&&
echo
"
$2
is unchanged"
||
cp
-f
"
$1
"
"
$2
"
cmp
-s
"
$1
"
"
$2
"
&&
echo
"
$2
is unchanged"
&&
return
mkdir
-p
"
$(
dirname
$2
)
"
cp
-f
"
$1
"
"
$2
"
}
# CONFIG_LIST contains configurable options, while HAVE_LIST is for
...
...
@@ -1675,10 +1675,8 @@ DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
# find source path
if
test
-f
configure
;
then
source_path
=
.
disable source_path_used
else
source_path
=
$(
cd
$(
dirname
"
$0
"
)
;
pwd
)
enable
source_path_used
echo
"
$source_path
"
|
grep
-q
'[[:blank:]]'
&&
die
"Out of tree builds are impossible with whitespace in source path."
test
-e
"
$source_path
/config.h"
&&
...
...
@@ -3180,27 +3178,7 @@ echo "License: $license"
echo
"Creating config.mak and config.h..."
# build tree in object directory if source path is different from current one
if
enabled source_path_used
;
then
DIRS
=
"
doc
libavcodec
libavcodec/
$arch
libavdevice
libavfilter
libavfilter/
$arch
libavformat
libavutil
libavutil/
$arch
libpostproc
libswscale
libswscale/
$arch
tests
tools
"
map
'mkdir -p $v'
$DIRS
;
$ln_s
"
$source_path
/Makefile"
.
fi
test
-e
Makefile
||
$ln_s
"
$source_path
/Makefile"
.
config_files
=
"
$TMPH
config.mak"
...
...
@@ -3379,6 +3357,7 @@ version=$3
libs
=
$4
requires
=
$5
enabled
${
name
#lib
}
||
return
0
mkdir
-p
$name
cat
<<
EOF
>
$name
/
$name
.pc
prefix=
$prefix
exec_prefix=
\$
{prefix}
...
...
This diff is collapsed.
Click to expand it.
doc/Makefile
+
3
−
0
View file @
5e27ec28
...
...
@@ -24,6 +24,9 @@ doc/%.1: TAG = MAN
doc/%.1
:
doc/%.pod
$(
M
)
pod2man
--section
=
1
--center
=
" "
--release
=
" "
$<
>
$@
$(DOCS)
:
| doc
OBJDIRS
+=
doc
install-progs-$(CONFIG_DOC)
:
install-man
install-man
:
$(MANPAGES)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment