mshtml: Mode range tests.
[wine] / loader / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = wine
6
7 C_SRCS = \
8         freebsd.c \
9         glibc.c \
10         kthread.c \
11         main.c \
12         preloader.c \
13         pthread.c
14
15 KTHREAD_OBJS = kthread.o main.o version.o
16 PTHREAD_OBJS = pthread.o main.o version.o
17
18 MAIN_BINARY    = @MAIN_BINARY@
19 EXTRA_BINARIES = @EXTRA_BINARIES@
20 WINE_BINARIES  = $(MAIN_BINARY) $(EXTRA_BINARIES)
21
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
34
35 MANPAGES = \
36         wine.man \
37         wine.de.man \
38         wine.fr.man
39
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)
45
46 all: $(WINE_BINARIES) $(WINE_BINARIES:%=%-installed) $(MODULE) $(MANPAGES)
47
48 @MAKE_RULES@
49
50 LIBPTHREAD  = @LIBPTHREAD@
51 LDEXECFLAGS = @LDEXECFLAGS@
52
53 wine-freebsd: freebsd.o Makefile.in
54         $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
55
56 wine-freebsd-installed: freebsd.o Makefile.in
57         $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
58
59 wine-glibc: glibc.o Makefile.in
60         $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
61
62 wine-glibc-installed: glibc.o Makefile.in
63         $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
64
65 wine-preloader wine-preloader-installed: preloader.o Makefile.in
66         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
67
68 wine-kthread: $(KTHREAD_OBJS) Makefile.in
69         $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
70
71 wine-kthread-installed: $(KTHREAD_OBJS) Makefile.in
72         $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
73
74 wine-pthread: $(PTHREAD_OBJS) Makefile.in
75         $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
76
77 wine-pthread-installed: $(PTHREAD_OBJS) Makefile.in
78         $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
79
80 $(MODULE): $(MAIN_BINARY)
81         $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
82
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)
93
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)
99
100 clean::
101         $(RM) version.c version-stamp
102
103 version-stamp: dummy
104         (GIT_DIR=$(TOPSRCDIR)/.git git-describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -e 's/\(.*\)/const char wine_version[] = "\1";/' >$@ || ($(RM) $@ && exit 1)
105
106 version.c: version-stamp
107         @cmp -s version-stamp $@ || cp version-stamp $@
108
109 @DEPENDENCIES@  # everything below this line is overwritten by make depend