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@
32 wine-glibc: glibc.o Makefile.in
33 $(CC) -o $@ glibc.o $(LIBWINE_LDFLAGS) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
35 wine-preloader: preloader.o Makefile.in
36 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
38 wine-kthread: $(KTHREAD_OBJS) Makefile.in
39 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE_LDFLAGS) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
41 wine-pthread: $(PTHREAD_OBJS) Makefile.in
42 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE_LDFLAGS) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
44 $(MODULE): $(MAIN_BINARY)
45 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
47 install:: $(WINE_BINARIES) $(MANPAGES) $(INSTALLDIRS)
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)
63 @DEPENDENCIES@ # everything below this line is overwritten by make depend