1 TOPSRCDIR = @top_srcdir@
13 KTHREAD_OBJS = kthread.o main.o
14 PTHREAD_OBJS = pthread.o main.o
16 WINE_BINARIES = @WINE_BINARIES@
17 MAIN_BINARY = @MAIN_BINARY@
19 all: $(WINE_BINARIES) $(MODULE)
23 LIBPTHREAD = @LIBPTHREAD@
24 LDEXECFLAGS = @LDEXECFLAGS@
26 wine-glibc: glibc.o Makefile.in
27 $(CC) -o $@ $(LDEXECFLAGS) glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
29 wine-kthread: $(KTHREAD_OBJS) Makefile.in
30 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
32 wine-pthread: $(PTHREAD_OBJS) Makefile.in
33 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
35 $(MODULE): $(MAIN_BINARY)
36 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
38 install:: $(WINE_BINARIES)
39 $(MKINSTALLDIRS) $(bindir)
40 for f in $(WINE_BINARIES); do \
41 if [ "$(MAIN_BINARY)" = "$$f" ]; \
42 then $(INSTALL_PROGRAM) $$f $(bindir)/$(MODULE); \
43 else $(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
48 $(RM) $(WINE_BINARIES:%=$(bindir)/%) $(bindir)/$(MODULE)
51 $(RM) $(WINE_BINARIES) $(MODULE)