ole32: Add a test to show that operations on overwritten should no longer succeed.
[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 = wine.man
36
37 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
38
39 all: $(WINE_BINARIES) $(WINE_BINARIES:%=%-installed) $(MODULE) $(MANPAGES)
40
41 @MAKE_RULES@
42
43 LIBPTHREAD  = @LIBPTHREAD@
44 LDEXECFLAGS = @LDEXECFLAGS@
45
46 wine-freebsd: freebsd.o Makefile.in
47         $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
48
49 wine-freebsd-installed: freebsd.o Makefile.in
50         $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
51
52 wine-glibc: glibc.o Makefile.in
53         $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
54
55 wine-glibc-installed: glibc.o Makefile.in
56         $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
57
58 wine-preloader wine-preloader-installed: preloader.o Makefile.in
59         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
60
61 wine-kthread: $(KTHREAD_OBJS) Makefile.in
62         $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
63
64 wine-kthread-installed: $(KTHREAD_OBJS) Makefile.in
65         $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
66
67 wine-pthread: $(PTHREAD_OBJS) Makefile.in
68         $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
69
70 wine-pthread-installed: $(PTHREAD_OBJS) Makefile.in
71         $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
72
73 $(MODULE): $(MAIN_BINARY)
74         $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
75
76 install:: $(WINE_BINARIES:%=%-installed) $(MANPAGES) $(INSTALLDIRS)
77         for f in $(WINE_BINARIES); do \
78           if [ "$(MAIN_BINARY)" = "$$f" ]; \
79           then $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$(MODULE); \
80           else $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$$f; \
81           fi; \
82         done
83         $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
84
85 uninstall::
86         -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
87         $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
88
89 clean::
90         $(RM) version.c version-stamp
91
92 version-stamp: dummy
93         (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)
94
95 version.c: version-stamp
96         @cmp -s version-stamp $@ || cp version-stamp $@
97
98 @DEPENDENCIES@  # everything below this line is overwritten by make depend