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@
22 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
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)
44 install:: $(WINE_BINARIES) $(MANPAGES)
45 $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
46 for f in $(WINE_BINARIES); do \
47 if [ "$(MAIN_BINARY)" = "$$f" ]; \
48 then $(INSTALL_PROGRAM) $$f $(bindir)/$(MODULE); \
49 else $(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
52 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
55 -cd $(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
56 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
59 $(RM) $(WINE_BINARIES) $(MODULE)