1 TOPSRCDIR
= @top_srcdir@
14 KTHREAD_OBJS
= kthread.o main.o
15 PTHREAD_OBJS
= pthread.o main.o
17 WINE_BINARIES
= @WINE_BINARIES@
18 MAIN_BINARY
= @MAIN_BINARY@
20 MAN_TARGETS
= wine.man
22 all: $(WINE_BINARIES
) $(MODULE
) $(MAN_TARGETS
)
26 LIBPTHREAD
= @LIBPTHREAD@
27 LDEXECFLAGS
= @LDEXECFLAGS@
29 wine-glibc
: glibc.o Makefile.in
30 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
32 wine-preloader
: preloader.o Makefile.in
33 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
35 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
36 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
)
38 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
39 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
41 $(MODULE
): $(MAIN_BINARY
)
42 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
45 sed
-e
's,@bindir\@,$(bindir),g' -e
's,@dlldir\@,$(dlldir),g' -e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR
)/wine.man.in
>$@ ||
($(RM
) $@
&& false
)
47 install:: $(WINE_BINARIES
) $(MAN_TARGETS
)
48 $(MKINSTALLDIRS
) $(bindir) $(mandir)/man
$(prog_manext
)
49 for f in
$(WINE_BINARIES
); do \
50 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
51 then
$(INSTALL_PROGRAM
) $$f $(bindir)/$(MODULE
); \
52 else $(INSTALL_PROGRAM
) $$f $(bindir)/$$f; \
55 $(INSTALL_DATA
) wine.man
$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
58 -cd
$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
59 $(RM
) $(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
62 $(RM
) $(WINE_BINARIES
) $(MODULE
) $(MAN_TARGETS
)