winhlp32: Add support for accelerators in general and F1 in particular.
[wine] / loader / Makefile.in
1 DEFS      = -D__WINESRC__ $(EXTRADEFS)
2
3 C_SRCS = \
4         main.c \
5         preloader.c
6
7 MAIN_BINARY    = @MAIN_BINARY@
8 EXTRA_BINARIES = @EXTRA_BINARIES@
9
10 PROGRAMS = \
11         wine \
12         wine-installed \
13         wine-preloader \
14         wine64 \
15         wine64-preloader
16
17 MANPAGE = wine.man
18
19 EXTRA_MANPAGES = \
20         wine.de.man \
21         wine.fr.man
22
23 INSTALLDIRS = \
24         $(DESTDIR)$(bindir) \
25         $(DESTDIR)$(mandir)/man$(prog_manext) \
26         $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
27         $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
28
29 all: $(MAIN_BINARY) wine-installed $(EXTRA_BINARIES)
30
31 @MAKE_RULES@
32
33 LIBPTHREAD  = @LIBPTHREAD@
34 LDEXECFLAGS = @LDEXECFLAGS@
35
36 wine-preloader wine64-preloader: preloader.o Makefile.in
37         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o $(LIBPORT) $(LDFLAGS)
38
39 $(MAIN_BINARY): main.o Makefile.in
40         $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
41
42 wine-installed: main.o Makefile.in
43         $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
44
45 $(EXTRA_BINARIES:%=__install__%): $(EXTRA_BINARIES) $(DESTDIR)$(bindir) dummy
46         f=`expr $@ : '__install__\(.*\)'` && $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f
47
48 .PHONY: install-man-pages $(EXTRA_BINARIES:%=__install__%)
49
50 install install-lib:: wine-installed $(DESTDIR)$(bindir) $(EXTRA_BINARIES:%=__install__%)
51         $(INSTALL_PROGRAM) wine-installed $(DESTDIR)$(bindir)/$(MAIN_BINARY)
52
53 install-man-pages:: $(EXTRA_MANPAGES) $(INSTALLDIRS) dummy
54         $(INSTALL_DATA) wine.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
55         $(INSTALL_DATA) wine.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
56
57 uninstall::
58         -cd $(DESTDIR)$(bindir) && $(RM) $(MAIN_BINARY) $(EXTRA_BINARIES)
59         $(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
60         $(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)