1 TOPSRCDIR
= @top_srcdir@
14 KTHREAD_OBJS
= kthread.o main.o version.o
15 PTHREAD_OBJS
= pthread.o main.o version.o
17 MAIN_BINARY
= @MAIN_BINARY@
18 EXTRA_BINARIES
= @EXTRA_BINARIES@
19 WINE_BINARIES
= $(MAIN_BINARY
) $(EXTRA_BINARIES
)
24 wine-glibc-installed \
26 wine-kthread-installed \
28 wine-preloader-installed \
30 wine-pthread-installed
34 INSTALLDIRS
= $(DESTDIR
)$(bindir) $(DESTDIR
)$(mandir)/man
$(prog_manext
)
36 all: $(WINE_BINARIES
) $(WINE_BINARIES
:%=%-installed
) $(MODULE
) $(MANPAGES
)
40 LIBPTHREAD
= @LIBPTHREAD@
41 LDEXECFLAGS
= @LDEXECFLAGS@
43 wine-glibc
: glibc.o Makefile.in
44 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
46 wine-glibc-installed
: glibc.o Makefile.in
47 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
49 wine-preloader wine-preloader-installed
: preloader.o Makefile.in
50 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
52 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
53 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
55 wine-kthread-installed
: $(KTHREAD_OBJS
) Makefile.in
56 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
58 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
59 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
61 wine-pthread-installed
: $(PTHREAD_OBJS
) Makefile.in
62 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
64 $(MODULE
): $(MAIN_BINARY
)
65 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
67 install:: $(WINE_BINARIES
:%=%-installed
) $(MANPAGES
) $(INSTALLDIRS
)
68 for f in
$(WINE_BINARIES
); do \
69 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
70 then
$(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$(MODULE
); \
71 else $(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$$f; \
74 $(INSTALL_DATA
) wine.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
77 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
78 $(RM
) $(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
81 $(RM
) version.c version-stamp
84 (GIT_DIR
=$(TOPSRCDIR
)/.git git-describe HEAD
2>/dev
/null || echo
"wine-@PACKAGE_VERSION@") | sed
-e
's/\(.*\)/const char wine_version[] = "\1";/' >$@ ||
($(RM
) $@
&& exit
1)
86 version.c
: version-stamp
87 @cmp
-s version-stamp
$@ || cp version-stamp
$@
89 @DEPENDENCIES@
# everything below this line is overwritten by make depend