1 TOPSRCDIR
= @top_srcdir@
14 PTHREAD_OBJS
= pthread.o main.o
16 MAIN_BINARY
= @MAIN_BINARY@
17 EXTRA_BINARIES
= @EXTRA_BINARIES@
18 WINE_BINARIES
= $(MAIN_BINARY
) $(EXTRA_BINARIES
)
23 wine-freebsd-installed \
25 wine-glibc-installed \
27 wine-preloader-installed \
29 wine-pthread-installed
38 $(DESTDIR
)$(mandir)/man
$(prog_manext
) \
39 $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
) \
40 $(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)
42 all: $(WINE_BINARIES
) $(WINE_BINARIES
:%=%-installed
) $(MODULE
) $(MANPAGES
)
46 LIBPTHREAD
= @LIBPTHREAD@
47 LDEXECFLAGS
= @LDEXECFLAGS@
49 wine-freebsd
: freebsd.o Makefile.in
50 $(CC
) -o
$@ freebsd.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
52 wine-freebsd-installed
: freebsd.o Makefile.in
53 $(CC
) -o
$@ freebsd.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
55 wine-glibc
: glibc.o Makefile.in
56 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
58 wine-glibc-installed
: glibc.o Makefile.in
59 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
61 wine-preloader wine-preloader-installed
: preloader.o Makefile.in
62 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
64 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
65 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
67 wine-pthread-installed
: $(PTHREAD_OBJS
) Makefile.in
68 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
70 $(MODULE
): $(MAIN_BINARY
)
71 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
73 install install-lib
:: $(WINE_BINARIES
:%=%-installed
) $(MANPAGES
) $(INSTALLDIRS
)
74 for f in
$(WINE_BINARIES
); do \
75 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
76 then
$(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$(MODULE
); \
77 else $(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$$f; \
80 $(INSTALL_DATA
) wine.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
81 $(INSTALL_DATA
) wine.de.man
$(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
82 $(INSTALL_DATA
) wine.fr.man
$(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
85 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
86 $(RM
) $(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
87 $(RM
) $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
88 $(RM
) $(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
90 @DEPENDENCIES@
# everything below this line is overwritten by make depend