wininet: Skip test_open_url_async on IEs older than 7.
[wine] / loader / Makefile.in
1 DEFS      = -D__WINESRC__ $(EXTRADEFS)
2 MODCFLAGS = @BUILTINFLAG@
3
4 C_SRCS = \
5         main.c \
6         preloader.c
7
8 MAIN_BINARY    = @MAIN_BINARY@
9 EXTRA_BINARIES = @EXTRA_BINARIES@
10
11 PROGRAMS = \
12         wine \
13         wine-installed \
14         wine-preloader \
15         wine64 \
16         wine64-preloader
17
18 MANPAGE = wine.man
19
20 EXTRA_MANPAGES = \
21         wine.de.man \
22         wine.fr.man \
23         wine.pl.man
24
25 INSTALLDIRS = \
26         $(DESTDIR)$(bindir) \
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)
31
32 all: $(MAIN_BINARY) wine-installed $(EXTRA_BINARIES)
33
34 @MAKE_RULES@
35
36 LIBPTHREAD  = @LIBPTHREAD@
37 LDEXECFLAGS = @LDEXECFLAGS@
38
39 wine-preloader wine64-preloader: preloader.o Makefile.in
40         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o $(LIBPORT) $(LDFLAGS)
41
42 $(MAIN_BINARY): main.o Makefile.in wine_info.plist
43         $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
44
45 wine-installed: main.o Makefile.in wine_info.plist
46         $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
47
48 wine_info.plist: wine_info.plist.in
49         LC_ALL=C sed -e 's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g' $< >$@ || ($(RM) $@ && false)
50
51 $(EXTRA_BINARIES:%=__install__%): $(EXTRA_BINARIES) $(DESTDIR)$(bindir) dummy
52         f=`expr $@ : '__install__\(.*\)'` && $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f
53
54 .PHONY: install-man-pages $(EXTRA_BINARIES:%=__install__%)
55
56 install install-lib:: wine-installed $(DESTDIR)$(bindir) $(EXTRA_BINARIES:%=__install__%)
57         $(INSTALL_PROGRAM) wine-installed $(DESTDIR)$(bindir)/$(MAIN_BINARY)
58
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)
63
64 uninstall::
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)