setupapi/tests: Remove last win9x references.
[wine/multimedia.git] / loader / Makefile.in
blob3179e2211a96e8b949d862f0358a5d86c7021bc7
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = wine
7 C_SRCS = \
8 freebsd.c \
9 glibc.c \
10 kthread.c \
11 main.c \
12 preloader.c \
13 pthread.c
15 KTHREAD_OBJS = kthread.o main.o
16 PTHREAD_OBJS = pthread.o main.o
18 MAIN_BINARY = @MAIN_BINARY@
19 EXTRA_BINARIES = @EXTRA_BINARIES@
20 WINE_BINARIES = $(MAIN_BINARY) $(EXTRA_BINARIES)
22 PROGRAMS = \
23 wine \
24 wine-freebsd \
25 wine-freebsd-installed \
26 wine-glibc \
27 wine-glibc-installed \
28 wine-kthread \
29 wine-kthread-installed \
30 wine-preloader \
31 wine-preloader-installed \
32 wine-pthread \
33 wine-pthread-installed
35 MANPAGES = \
36 wine.man \
37 wine.de.man \
38 wine.fr.man
40 INSTALLDIRS = \
41 $(DESTDIR)$(bindir) \
42 $(DESTDIR)$(mandir)/man$(prog_manext) \
43 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
44 $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
46 all: $(WINE_BINARIES) $(WINE_BINARIES:%=%-installed) $(MODULE) $(MANPAGES)
48 @MAKE_RULES@
50 LIBPTHREAD = @LIBPTHREAD@
51 LDEXECFLAGS = @LDEXECFLAGS@
53 wine-freebsd: freebsd.o Makefile.in
54 $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
56 wine-freebsd-installed: freebsd.o Makefile.in
57 $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
59 wine-glibc: glibc.o Makefile.in
60 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
62 wine-glibc-installed: glibc.o Makefile.in
63 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
65 wine-preloader wine-preloader-installed: preloader.o Makefile.in
66 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
68 wine-kthread: $(KTHREAD_OBJS) Makefile.in
69 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
71 wine-kthread-installed: $(KTHREAD_OBJS) Makefile.in
72 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
74 wine-pthread: $(PTHREAD_OBJS) Makefile.in
75 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
77 wine-pthread-installed: $(PTHREAD_OBJS) Makefile.in
78 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
80 $(MODULE): $(MAIN_BINARY)
81 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
83 install:: $(WINE_BINARIES:%=%-installed) $(MANPAGES) $(INSTALLDIRS)
84 for f in $(WINE_BINARIES); do \
85 if [ "$(MAIN_BINARY)" = "$$f" ]; \
86 then $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$(MODULE); \
87 else $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$$f; \
88 fi; \
89 done
90 $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
91 $(INSTALL_DATA) wine.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
92 $(INSTALL_DATA) wine.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
94 uninstall::
95 -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
96 $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
97 $(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
98 $(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
100 @DEPENDENCIES@ # everything below this line is overwritten by make depend