1 TOPSRCDIR
= @top_srcdir@
15 KTHREAD_OBJS
= kthread.o main.o version.o
16 PTHREAD_OBJS
= pthread.o main.o version.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
35 MANPAGES
= wine.man wine.de.man
39 $(DESTDIR
)$(mandir)/man
$(prog_manext
) \
40 $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)
42 all: $(WINE_BINARIES
) $(WINE_BINARIES
:%=%-installed
) $(MODULE
) $(MANPAGES
)
46 LIBPTHREAD
= @LIBPTHREAD@
47 LDEXECFLAGS
= @LDEXECFLAGS@
49 wine-freebsd
: freebsd.o Makefile.in
50 $(CC
) -o
$@ freebsd.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
52 wine-freebsd-installed
: freebsd.o Makefile.in
53 $(CC
) -o
$@ freebsd.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
55 wine-glibc
: glibc.o Makefile.in
56 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
58 wine-glibc-installed
: glibc.o Makefile.in
59 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
61 wine-preloader wine-preloader-installed
: preloader.o Makefile.in
62 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x7c000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
64 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
65 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
67 wine-kthread-installed
: $(KTHREAD_OBJS
) Makefile.in
68 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
70 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
71 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_LOCAL
)
73 wine-pthread-installed
: $(PTHREAD_OBJS
) Makefile.in
74 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
) $(LDRPATH_INSTALL
)
76 $(MODULE
): $(MAIN_BINARY
)
77 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
79 install:: $(WINE_BINARIES
:%=%-installed
) $(MANPAGES
) $(INSTALLDIRS
)
80 for f in
$(WINE_BINARIES
); do \
81 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
82 then
$(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$(MODULE
); \
83 else $(INSTALL_PROGRAM
) $$f-installed
$(DESTDIR
)$(bindir)/$$f; \
86 $(INSTALL_DATA
) wine.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
87 $(INSTALL_DATA
) wine.de.man
$(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
90 -cd
$(DESTDIR
)$(bindir) && $(RM
) $(WINE_BINARIES
) $(MODULE
)
91 $(RM
) $(DESTDIR
)$(mandir)/man
$(prog_manext
)/wine.
$(prog_manext
)
92 $(RM
) $(DESTDIR
)$(mandir)/de.UTF-8
/man
$(prog_manext
)/wine.
$(prog_manext
)
95 $(RM
) version.c version-stamp
98 (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)
100 version.c
: version-stamp
101 @cmp
-s version-stamp
$@ || cp version-stamp
$@
103 @DEPENDENCIES@
# everything below this line is overwritten by make depend