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 INSTALLDIRS
= $(DESTDIR
)$(bindir) $(DESTDIR
)$(mandir)/man
$(prog_manext
)
25 all: $(WINE_BINARIES
) $(MODULE
) $(MANPAGES
)
29 LIBPTHREAD
= @LIBPTHREAD@
30 LDEXECFLAGS
= @LDEXECFLAGS@
31 LDRPATH
= @LDEXERPATH@
33 wine-glibc
: glibc.o Makefile.in
34 $(CC
) -o
$@ glibc.o
$(LDRPATH
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
36 wine-preloader
: preloader.o Makefile.in
37 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
39 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
40 $(CC
) -o
$@
$(LDEXECFLAGS
) $(LDRPATH
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
)
42 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
43 $(CC
) -o
$@
$(LDEXECFLAGS
) $(LDRPATH
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
45 $(MODULE
): $(MAIN_BINARY
)
46 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
48 install:: $(WINE_BINARIES
) $(MANPAGES
) $(INSTALLDIRS
)
49 for f in
$(WINE_BINARIES
); do \
50 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
51 then
$(INSTALL_PROGRAM
) $$f $(DESTDIR
)$(bindir)/$(MODULE
); \
52 else $(INSTALL_PROGRAM
) $$f $(DESTDIR
)$(bindir)/$$f; \
55 $(INSTALL_DATA
) wine.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
58 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
59 $(RM
) $(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
62 $(RM
) $(WINE_BINARIES
) $(MODULE
)