push 46756c23c8ad9edb429a5c7b07633fa443e7b3ef
[wine/hacks.git] / loader / Makefile.in
blobafe3f73753e48516ebaaef49478c7659df8bbba3
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = wine
7 C_SRCS = \
8 main.c \
9 preloader.c \
10 pthread.c
12 MAIN_OBJS = pthread.o main.o
14 EXTRA_BINARIES = @EXTRA_BINARIES@
16 PROGRAMS = \
17 wine \
18 wine-installed \
19 wine-preloader
21 MANPAGES = \
22 wine.man \
23 wine.de.man \
24 wine.fr.man
26 INSTALLDIRS = \
27 $(DESTDIR)$(bindir) \
28 $(DESTDIR)$(mandir)/man$(prog_manext) \
29 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
30 $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
32 all: wine wine-installed $(EXTRA_BINARIES) $(MANPAGES)
34 @MAKE_RULES@
36 LIBPTHREAD = @LIBPTHREAD@
37 LDEXECFLAGS = @LDEXECFLAGS@
39 wine-preloader: preloader.o Makefile.in
40 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
42 wine: $(MAIN_OBJS) Makefile.in
43 $(CC) -o $@ $(LDEXECFLAGS) $(MAIN_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
45 wine-installed: $(MAIN_OBJS) Makefile.in
46 $(CC) -o $@ $(LDEXECFLAGS) $(MAIN_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
48 $(EXTRA_BINARIES:%=__install__%): $(EXTRA_BINARIES) $(DESTDIR)$(bindir) dummy
49 f=`expr $@ : '__install__\(.*\)'` && $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f
51 .PHONY: $(EXTRA_BINARIES:%=__install__%)
53 install install-lib:: wine-installed $(EXTRA_BINARIES:%=__install__%) $(MANPAGES) $(INSTALLDIRS)
54 $(INSTALL_PROGRAM) wine-installed $(DESTDIR)$(bindir)/$(MODULE)
55 $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
56 $(INSTALL_DATA) wine.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
57 $(INSTALL_DATA) wine.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
59 uninstall::
60 -cd $(DESTDIR)$(bindir) && $(RM) $(EXTRA_BINARIES) $(MODULE)
61 $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
62 $(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
63 $(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
65 @DEPENDENCIES@ # everything below this line is overwritten by make depend