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
7d6ac9a3
Commit
7d6ac9a3
authored
17 years ago
by
Måns Rullgård
Browse files
Options
Downloads
Patches
Plain Diff
prettify conditional targets
Originally committed as revision 9566 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cbefadbd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+7
-11
7 additions, 11 deletions
Makefile
with
7 additions
and
11 deletions
Makefile
+
7
−
11
View file @
7d6ac9a3
...
...
@@ -30,10 +30,11 @@ else
DEP_LIBS
=
libavcodec/
$(
LIBPREF
)
avcodec
$(
LIBSUF
)
libavformat/
$(
LIBPREF
)
avformat
$(
LIBSUF
)
endif
ifeq
($(CONFIG_VHOOK),yes)
all
:
videohook
install
:
install-vhook
endif
ALL_TARGETS-$(CONFIG_VHOOK)
+=
videohook
ALL_TARGETS-$(BUILD_DOC)
+=
documentation
INSTALL_TARGETS-$(CONFIG_VHOOK)
+=
install-vhook
INSTALL_TARGETS-$(BUILD_DOC)
+=
install-man
VHOOKCFLAGS
+=
$(
filter-out
-mdynamic-no-pic
,
$(
CFLAGS
))
...
...
@@ -55,11 +56,6 @@ LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
VHOOKCFLAGS
+=
$(
VHOOKCFLAGS-yes
)
ifeq
($(BUILD_DOC),yes)
all
:
documentation
install
:
install-man
endif
SRCS
=
$(
addsuffix .c,
$(
PROGS-yes
))
cmdutils.c
LDFLAGS
:=
-L
$(
BUILD_ROOT
)
/libavformat
-L
$(
BUILD_ROOT
)
/libavcodec
-L
$(
BUILD_ROOT
)
/libavutil
$(
LDFLAGS
)
EXTRALIBS
:=
-lavformat
$(
BUILDSUF
)
-lavcodec
$(
BUILDSUF
)
-lavutil
$(
BUILDSUF
)
$(
EXTRALIBS
)
...
...
@@ -69,7 +65,7 @@ LDFLAGS+=-L$(BUILD_ROOT)/libswscale
EXTRALIBS
+=
-lswscale
$(
BUILDSUF
)
endif
all
:
lib $(PROGS)
all
:
lib $(PROGS)
$(ALL_TARGETS-yes)
lib
:
$(
MAKE
)
-C
libavutil all
...
...
@@ -140,7 +136,7 @@ doc/%.pod: doc/%-doc.texi
doc/%.1
:
doc/%.pod
pod2man
--section
=
1
--center
=
" "
--release
=
" "
$<
>
$@
install
:
install-progs install-libs install-headers
install
:
install-progs install-libs install-headers
$(INSTALL_TARGETS-yes)
ifeq
($(BUILD_SHARED),yes)
install-progs
:
$(PROGS) install-libs
...
...
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