mlang/tests: Fix some nasty #ifdef syntax.
[wine] / loader / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 DEFS      = -D__WINESRC__ $(EXTRADEFS)
6
7 C_SRCS = \
8         main.c \
9         preloader.c
10
11 MAIN_BINARY    = @MAIN_BINARY@
12 EXTRA_BINARIES = @EXTRA_BINARIES@
13
14 PROGRAMS = \
15         wine \
16         wine64 \
17         wine-installed \
18         wine-preloader
19
20 MANPAGES = \
21         wine.man \
22         wine.de.man \
23         wine.fr.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
31 all: $(MAIN_BINARY) wine-installed $(EXTRA_BINARIES) $(MANPAGES)
32
33 @MAKE_RULES@
34
35 LIBPTHREAD  = @LIBPTHREAD@
36 LDEXECFLAGS = @LDEXECFLAGS@
37
38 wine-preloader: preloader.o Makefile.in
39         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
40
41 $(MAIN_BINARY): main.o Makefile.in
42         $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
43
44 wine-installed: main.o Makefile.in
45         $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
46
47 $(EXTRA_BINARIES:%=__install__%): $(EXTRA_BINARIES) $(DESTDIR)$(bindir) dummy
48         f=`expr $@ : '__install__\(.*\)'` && $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f
49
50 .PHONY: install-man-pages $(EXTRA_BINARIES:%=__install__%)
51
52 install install-lib:: wine-installed $(DESTDIR)$(bindir) $(EXTRA_BINARIES:%=__install__%)
53         $(INSTALL_PROGRAM) wine-installed $(DESTDIR)$(bindir)/$(MAIN_BINARY)
54
55 @WOW64_DISABLE@ install install-lib:: install-man-pages
56
57 install-man-pages: $(MANPAGES) $(INSTALLDIRS) dummy
58         $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
59         $(INSTALL_DATA) wine.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
60         $(INSTALL_DATA) wine.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
61
62 uninstall::
63         -cd $(DESTDIR)$(bindir) && $(RM) $(MAIN_BINARY) $(EXTRA_BINARIES)
64         $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
65         $(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
66         $(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)