1 TOPSRCDIR
= @top_srcdir@
15 KTHREAD_OBJS
= kthread.o main.o
16 PTHREAD_OBJS
= pthread.o main.o
18 MAIN_BINARY
= @MAIN_BINARY@
19 EXTRA_BINARIES
= @EXTRA_BINARIES@
20 WINE_BINARIES
= $(MAIN_BINARY
) $(EXTRA_BINARIES
)
25 wine-freebsd-installed \
27 wine-glibc-installed \
29 wine-kthread-installed \
31 wine-preloader-installed \
33 wine-pthread-installed
42 $(DESTDIR
)$(mandir)/man
$(prog_manext
) \
43 $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
) \
44 $(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)
46 all: $(WINE_BINARIES
) $(WINE_BINARIES
:%=%-installed
) $(MODULE
) $(MANPAGES
)
50 LIBPTHREAD
= @LIBPTHREAD@
51 LDEXECFLAGS
= @LDEXECFLAGS@
53 wine-freebsd
: freebsd.o Makefile.in
54 $(CC
) -o
$@ freebsd.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
56 wine-freebsd-installed
: freebsd.o Makefile.in
57 $(CC
) -o
$@ freebsd.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
59 wine-glibc
: glibc.o Makefile.in
60 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
62 wine-glibc-installed
: glibc.o Makefile.in
63 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
65 wine-preloader wine-preloader-installed
: preloader.o Makefile.in
66 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
68 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
69 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
71 wine-kthread-installed
: $(KTHREAD_OBJS
) Makefile.in
72 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
74 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
75 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
77 wine-pthread-installed
: $(PTHREAD_OBJS
) Makefile.in
78 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
80 $(MODULE
): $(MAIN_BINARY
)
81 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
83 install:: $(WINE_BINARIES
:%=%-installed
) $(MANPAGES
) $(INSTALLDIRS
)
84 for f in
$(WINE_BINARIES
); do \
85 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
86 then
$(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$(MODULE
); \
87 else $(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$$f; \
90 $(INSTALL_DATA
) wine.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
91 $(INSTALL_DATA
) wine.de.man
$(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
92 $(INSTALL_DATA
) wine.fr.man
$(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
95 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
96 $(RM
) $(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
97 $(RM
) $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
98 $(RM
) $(DESTDIR
)$(mandir)/fr.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
100 @DEPENDENCIES@
# everything below this line is overwritten by make depend