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 all: $(WINE_BINARIES
) $(MODULE
)
24 LIBPTHREAD
= @LIBPTHREAD@
25 LDEXECFLAGS
= @LDEXECFLAGS@
27 wine-glibc
: glibc.o Makefile.in
28 $(CC
) -o
$@ glibc.o
$(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
30 wine-preloader
: preloader.o Makefile.in
31 $(CC
) -o
$@
-static
-nostartfiles
-nodefaultlibs
-Wl
,-Ttext
=0x78000000 preloader.o
$(LIBPORT
) $(LDFLAGS
)
33 wine-kthread
: $(KTHREAD_OBJS
) Makefile.in
34 $(CC
) -o
$@
$(LDEXECFLAGS
) $(KTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(EXTRALIBS
) $(LDFLAGS
)
36 wine-pthread
: $(PTHREAD_OBJS
) Makefile.in
37 $(CC
) -o
$@
$(LDEXECFLAGS
) $(PTHREAD_OBJS
) $(LIBWINE
) $(LIBPORT
) $(LIBPTHREAD
) $(EXTRALIBS
) $(LDFLAGS
)
39 $(MODULE
): $(MAIN_BINARY
)
40 $(RM
) $(MODULE
) && $(LN_S
) $(MAIN_BINARY
) $(MODULE
)
42 install:: $(WINE_BINARIES
)
43 $(MKINSTALLDIRS
) $(bindir)
44 for f in
$(WINE_BINARIES
); do \
45 if
[ "$(MAIN_BINARY)" = "$$f" ]; \
46 then
$(INSTALL_PROGRAM
) $$f $(bindir)/$(MODULE
); \
47 else $(INSTALL_PROGRAM
) $$f $(bindir)/$$f; \
52 $(RM
) $(WINE_BINARIES
:%=$(bindir)/%) $(bindir)/$(MODULE
)
55 $(RM
) $(WINE_BINARIES
) $(MODULE
)