1 DEFS
= -D__WINESRC__
$(EXTRADEFS
)
2 MODCFLAGS
= @BUILTINFLAG@
8 MAIN_BINARY
= @MAIN_BINARY@
9 EXTRA_BINARIES
= @EXTRA_BINARIES@
27 $(DESTDIR
)$(mandir)/man
$(prog_manext
) \
28 $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
) \
29 $(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
) \
30 $(DESTDIR
)$(mandir)/pl.UTF-8
/man
$(prog_manext
)
32 all: $(MAIN_BINARY
) wine-installed
$(EXTRA_BINARIES
)
36 LIBPTHREAD
= @LIBPTHREAD@
37 LDEXECFLAGS
= @LDEXECFLAGS@
39 wine-preloader wine64-preloader
: preloader.o Makefile.in
40 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c400000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
42 $(MAIN_BINARY
): main.o Makefile.in wine_info.plist
43 $(CC
) -o
$@
$(LDEXECFLAGS
) main.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
45 wine-installed
: main.o Makefile.in wine_info.plist
46 $(CC
) -o
$@
$(LDEXECFLAGS
) main.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
48 wine_info.plist
: wine_info.plist.in
49 LC_ALL
=C sed
-e
's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g' $< >$@ ||
($(RM
) $@
&& false
)
51 $(EXTRA_BINARIES
:%=__install__
%): $(EXTRA_BINARIES
) $(DESTDIR
)$(bindir) dummy
52 f
=`expr $@ : '__install__\(.*\)'` && $(INSTALL_PROGRAM
) $$f $(DESTDIR
)$(bindir)/$$f
54 .PHONY
: install-man-pages
$(EXTRA_BINARIES
:%=__install__
%)
56 install install-lib
:: wine-installed
$(DESTDIR
)$(bindir) $(EXTRA_BINARIES
:%=__install__
%)
57 $(INSTALL_PROGRAM
) wine-installed
$(DESTDIR
)$(bindir)/$(MAIN_BINARY
)
59 install-man-pages
:: $(EXTRA_MANPAGES
) $(INSTALLDIRS
) dummy
60 $(INSTALL_DATA
) wine.de.man
$(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
61 $(INSTALL_DATA
) wine.fr.man
$(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
62 $(INSTALL_DATA
) wine.pl.man
$(DESTDIR
)$(mandir)/pl.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
65 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(MAIN_BINARY
) $(EXTRA_BINARIES
)
66 $(RM
) $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
67 $(RM
) $(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
68 $(RM
) $(DESTDIR
)$(mandir)/pl.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)