1 TOPSRCDIR
= @top_srcdir@
14 KTHREAD_OBJS
= kthread.o main.o
15 PTHREAD_OBJS
= pthread.o main.o
17 MAIN_BINARY
= @MAIN_BINARY@
18 EXTRA_BINARIES
= @EXTRA_BINARIES@
19 WINE_BINARIES
= $(MAIN_BINARY
) $(EXTRA_BINARIES
)
23 all: $(WINE_BINARIES
) $(MODULE
) $(MANPAGES
)
27 LIBPTHREAD
= @LIBPTHREAD@
28 LDEXECFLAGS
= @LDEXECFLAGS@
29 LDEXERPATH
= @LDEXERPATH@
31 wine-glibc
: glibc.o Makefile.in
32 $(CC
) -o
$@ glibc.o
$(LDEXERPATH
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
34 wine-preloader
: preloader.o Makefile.in
35 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
37 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
38 $(CC
) -o
$@
$(LDEXECFLAGS
) $(LDEXERPATH
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
)
40 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
41 $(CC
) -o
$@
$(LDEXECFLAGS
) $(LDEXERPATH
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
43 $(MODULE
): $(MAIN_BINARY
)
44 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
46 install:: $(WINE_BINARIES
) $(MANPAGES
)
47 $(MKINSTALLDIRS
) $(DESTDIR
)$(bindir) $(DESTDIR
)$(mandir)/man
$(prog_manext
)
48 for f in
$(WINE_BINARIES
); do \
49 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
50 then
$(INSTALL_PROGRAM
) $$f $(DESTDIR
)$(bindir)/$(MODULE
); \
51 else $(INSTALL_PROGRAM
) $$f $(DESTDIR
)$(bindir)/$$f; \
54 $(INSTALL_DATA
) wine.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
57 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
58 $(RM
) $(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
61 $(RM
) $(WINE_BINARIES
) $(MODULE
)