Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
bb524924
Commit
bb524924
authored
Jun 05, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: move basic rules and variables to main Makefile
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
8d853efe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
40 deletions
+35
-40
Makefile
Makefile
+35
-0
common.mak
common.mak
+0
-40
No files found.
Makefile
View file @
bb524924
...
@@ -9,6 +9,41 @@ vpath %.asm $(SRC_DIR)
...
@@ -9,6 +9,41 @@ vpath %.asm $(SRC_DIR)
vpath
%.v
$(SRC_DIR)
vpath
%.v
$(SRC_DIR)
vpath
%.texi
$(SRC_PATH_BARE)
vpath
%.texi
$(SRC_PATH_BARE)
ifndef
V
Q
=
@
ECHO
=
printf
"
$
(1)
\t
%s
\n
"
$
(
2
)
BRIEF
=
CC AS YASM AR LD HOSTCC
SILENT
=
DEPCC YASMDEP RM RANLIB
MSG
=
$@
M
=
@
$
(
call ECHO,
$(TAG)
,
$@
)
;
$(foreach
VAR,$(BRIEF),
\
$(eval
override
$(VAR)
=
@$$(call
ECHO,$(VAR),$$(MSG));
$($(VAR))))
$(foreach
VAR,$(SILENT),$(eval
override
$(VAR)
=
@$($(VAR))))
$(eval INSTALL = @$(call ECHO,INSTALL,$$(^
:
$(SRC_DIR)/%=%)); $(INSTALL))
endif
IFLAGS
:=
-I
.
-I
$(SRC_PATH)
CPPFLAGS
:=
$(IFLAGS)
$(CPPFLAGS)
CFLAGS
+=
$(ECFLAGS)
YASMFLAGS
+=
$(IFLAGS)
-Pconfig
.asm
HOSTCFLAGS
+=
$(IFLAGS)
%.o
:
%.c
$(CCDEP)
$(CC)
$(CPPFLAGS)
$(CFLAGS)
$(CC_DEPFLAGS)
-c
$(CC_O)
$<
%.o
:
%.S
$(ASDEP)
$(AS)
$(CPPFLAGS)
$(ASFLAGS)
$(AS_DEPFLAGS)
-c
-o
$@
$<
%.ho
:
%.h
$(CC)
$(CPPFLAGS)
$(CFLAGS)
-Wno-unused
-c
-o
$@
-x
c
$<
%.ver
:
%.v
$(Q)
sed
's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/'
$^
>
$@
%.c %.h
:
TAG = GEN
PROGS-$(CONFIG_FFMPEG)
+=
ffmpeg
PROGS-$(CONFIG_FFMPEG)
+=
ffmpeg
PROGS-$(CONFIG_FFPLAY)
+=
ffplay
PROGS-$(CONFIG_FFPLAY)
+=
ffplay
PROGS-$(CONFIG_FFPROBE)
+=
ffprobe
PROGS-$(CONFIG_FFPROBE)
+=
ffprobe
...
...
common.mak
View file @
bb524924
...
@@ -5,46 +5,6 @@
...
@@ -5,46 +5,6 @@
# first so "all" becomes default target
# first so "all" becomes default target
all: all-yes
all: all-yes
ifndef SUBDIR
ifndef V
Q = @
ECHO = printf "$(1)\t%s\n" $(2)
BRIEF = CC AS YASM AR LD HOSTCC
SILENT = DEPCC YASMDEP RM RANLIB
MSG = $@
M = @$(call ECHO,$(TAG),$@);
$(foreach VAR,$(BRIEF), \
$(eval override $(VAR) = @$$(call ECHO,$(VAR),$$(MSG)); $($(VAR))))
$(foreach VAR,$(SILENT),$(eval override $(VAR) = @$($(VAR))))
$(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_DIR)/%=%)); $(INSTALL))
endif
IFLAGS := -I. -I$(SRC_PATH)
CPPFLAGS := $(IFLAGS) $(CPPFLAGS)
CFLAGS += $(ECFLAGS)
YASMFLAGS += $(IFLAGS) -Pconfig.asm
HOSTCFLAGS += $(IFLAGS)
%.o: %.c
$(CCDEP)
$(CC) $(CPPFLAGS) $(CFLAGS) $(CC_DEPFLAGS) -c $(CC_O) $<
%.o: %.S
$(ASDEP)
$(AS) $(CPPFLAGS) $(ASFLAGS) $(AS_DEPFLAGS) -c -o $@ $<
%.ho: %.h
$(CC) $(CPPFLAGS) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
%.ver: %.v
$(Q)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@
%.c %.h: TAG = GEN
endif
OBJS-$(HAVE_MMX) += $(MMX-OBJS-yes)
OBJS-$(HAVE_MMX) += $(MMX-OBJS-yes)
OBJS += $(OBJS-yes)
OBJS += $(OBJS-yes)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment