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
deb3ed01
Commit
deb3ed01
authored
Jun 28, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: replace some addprefix/addsuffix with substitution refs
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
bb00b15f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
common.mak
common.mak
+10
-10
Makefile
tests/Makefile
+1
-1
No files found.
common.mak
View file @
deb3ed01
...
...
@@ -11,21 +11,21 @@ OBJS += $(OBJS-yes)
FFLIBS := $(FFLIBS-yes) $(FFLIBS)
TESTPROGS += $(TESTPROGS-yes)
FFEXTRALIBS := $(
addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS)
)) $(EXTRALIBS)
FFLDFLAGS := $(
addprefix -Llib,$(ALLFFLIBS)
) $(LDFLAGS)
FFEXTRALIBS := $(
FFLIBS:%=-l%$(BUILDSUF
)) $(EXTRALIBS)
FFLDFLAGS := $(
ALLFFLIBS:%=-Llib%
) $(LDFLAGS)
EXAMPLES := $(
addprefix $(SUBDIR),$(addsuffix -example$(EXESUF),$(EXAMPLES)
))
OBJS := $(
addprefix $(SUBDIR),$(sort $(OBJS)
))
TESTOBJS := $(
addprefix $(SUBDIR),$(TESTOBJS) $(TESTPROGS:%=%-test.o)
)
TESTPROGS := $(
addprefix $(SUBDIR),$(addsuffix -test$(EXESUF),$(TESTPROGS)
))
HOSTOBJS := $(
addprefix $(SUBDIR),$(addsuffix .o,$(HOSTPROGS))
)
HOSTPROGS := $(
addprefix $(SUBDIR),$(addsuffix $(HOSTEXESUF),$(HOSTPROGS)
))
EXAMPLES := $(
EXAMPLES:%=$(SUBDIR)%-example$(EXESUF
))
OBJS := $(
sort $(OBJS:%=$(SUBDIR)%
))
TESTOBJS := $(
TESTOBJS:%=$(SUBDIR)%) $(TESTPROGS:%=$(SUBDIR)%-test.o
)
TESTPROGS := $(
TESTPROGS:%=$(SUBDIR)%-test$(EXESUF
))
HOSTOBJS := $(
HOSTPROGS:%=$(SUBDIR)%.o
)
HOSTPROGS := $(
HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF
))
DEP_LIBS := $(foreach NAME,$(FFLIBS),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME))
ALLHEADERS := $(subst $(SRC_DIR)/,$(SUBDIR),$(wildcard $(SRC_DIR)/*.h $(SRC_DIR)/$(ARCH)/*.h))
SKIPHEADERS += $(
addprefix $(ARCH)/,$(ARCH_HEADERS)
)
SKIPHEADERS := $(
addprefix $(SUBDIR),$(SKIPHEADERS-) $(SKIPHEADERS)
)
SKIPHEADERS += $(
ARCH_HEADERS:%=$(ARCH)/%) $(SKIPHEADERS-
)
SKIPHEADERS := $(
SKIPHEADERS:%=$(SUBDIR)%
)
checkheaders: $(filter-out $(SKIPHEADERS:.h=.ho),$(ALLHEADERS:.h=.ho))
$(HOSTOBJS): %.o: %.c
...
...
tests/Makefile
View file @
deb3ed01
...
...
@@ -112,7 +112,7 @@ clean:: testclean
testclean
:
$(RM)
-r
tests/vsynth1 tests/vsynth2 tests/data
$(RM)
$
(
addprefix tests/,
$(CLEANSUFFIXES)
)
$(RM)
$
(
CLEANSUFFIXES:%
=
tests/%
)
$(RM)
tests/seek_test
$(EXESUF)
tests/seek_test.o
$(RM)
$
(
TESTTOOLS:%
=
tests/%
$(HOSTEXESUF)
)
...
...
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