forked from madewokherd/wine-mono
-
Notifications
You must be signed in to change notification settings - Fork 1
/
theorafile.make
24 lines (18 loc) · 892 Bytes
/
theorafile.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
THEORAFILE_SRCS=$(shell $(SRCDIR)/tools/git-updated-files $(SRCDIR)/FNA/lib/Theorafile)
define MINGW_TEMPLATE +=
# libtheorafile
$$(BUILDDIR)/Theorafile-$(1)/.built: $$(THEORAFILE_SRCS) $$(BUILDDIR)/.dir $$(MINGW_DEPS)
mkdir -p $$(BUILDDIR)/Theorafile-$(1)
+$$(MINGW_ENV) $$(MAKE) -C $$(BUILDDIR_ABS)/Theorafile-$(1) "CC=$$(MINGW_$(1))-gcc" -f $$(SRCDIR_ABS)/FNA/lib/Theorafile/Makefile
touch "$$@"
IMAGEDIR_BUILD_TARGETS += $$(BUILDDIR)/Theorafile-$(1)/.built
libtheorafile-$(1).dll: $$(BUILDDIR)/Theorafile-$(1)/.built
mkdir -p "$$(IMAGEDIR)/lib"
$$(INSTALL_PE_$(1)) "$$(BUILDDIR)/Theorafile-$(1)/libtheorafile.dll" "$$(IMAGEDIR)/lib/libtheorafile-$(1).dll"
.PHONY: libtheorafile-$(1).dll
imagedir-targets: libtheorafile-$(1).dll
clean-build-Theorafile-$(1):
rm -rf $$(BUILDDIR)/Theorafile-$(1)
.PHONY: clean-build-Theorafile-$(1)
clean-build: clean-build-Theorafile-$(1)
endef