oleaut32/tests: Test relative error, not absolute.
[wine] / loader / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = wine
6
7 C_SRCS = \
8         glibc.c \
9         kthread.c \
10         main.c \
11         preloader.c \
12         pthread.c
13
14 KTHREAD_OBJS = kthread.o main.o
15 PTHREAD_OBJS = pthread.o main.o
16
17 MAIN_BINARY    = @MAIN_BINARY@
18 EXTRA_BINARIES = @EXTRA_BINARIES@
19 WINE_BINARIES  = $(MAIN_BINARY) $(EXTRA_BINARIES)
20
21 MANPAGES = wine.man
22
23 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
24
25 @MAKE_RULES@
26
27 LIBPTHREAD  = @LIBPTHREAD@
28 LDEXECFLAGS = @LDEXECFLAGS@
29 LDRPATH     = @LDEXERPATH@
30
31 wine-glibc: glibc.o Makefile.in
32         $(CC) -o $@ glibc.o $(LDRPATH) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
33
34 wine-preloader: preloader.o Makefile.in
35         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
36
37 wine-kthread: $(KTHREAD_OBJS) Makefile.in
38         $(CC) -o $@ $(LDEXECFLAGS) $(LDRPATH) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
39
40 wine-pthread: $(PTHREAD_OBJS) Makefile.in
41         $(CC) -o $@ $(LDEXECFLAGS) $(LDRPATH) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
42
43 $(MODULE): $(MAIN_BINARY)
44         $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
45
46 install:: $(WINE_BINARIES) $(MANPAGES)
47         $(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
48         for f in $(WINE_BINARIES); do \
49           if [ "$(MAIN_BINARY)" = "$$f" ]; \
50           then $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$(MODULE); \
51           else $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f; \
52           fi; \
53         done
54         $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
55
56 uninstall::
57         -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
58         $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
59
60 clean::
61         $(RM) $(WINE_BINARIES) $(MODULE)
62
63 ### Dependencies: