msi: automation: Fix SummaryInfo::Property get to conform to native.
[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 version.o
15 PTHREAD_OBJS = pthread.o main.o version.o
16
17 MAIN_BINARY    = @MAIN_BINARY@
18 EXTRA_BINARIES = @EXTRA_BINARIES@
19 WINE_BINARIES  = $(MAIN_BINARY) $(EXTRA_BINARIES)
20
21 PROGRAMS = \
22         wine \
23         wine-glibc \
24         wine-kthread \
25         wine-preloader \
26         wine-pthread\
27
28 MANPAGES = wine.man
29
30 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
31
32 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
33
34 @MAKE_RULES@
35
36 LIBPTHREAD  = @LIBPTHREAD@
37 LDEXECFLAGS = @LDEXECFLAGS@
38
39 wine-glibc: glibc.o Makefile.in
40         $(CC) -o $@ glibc.o $(LIBWINE_LDFLAGS) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
41
42 wine-preloader: preloader.o Makefile.in
43         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
44
45 wine-kthread: $(KTHREAD_OBJS) Makefile.in
46         $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE_LDFLAGS) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
47
48 wine-pthread: $(PTHREAD_OBJS) Makefile.in
49         $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE_LDFLAGS) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
50
51 $(MODULE): $(MAIN_BINARY)
52         $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
53
54 install:: $(WINE_BINARIES) $(MANPAGES) $(INSTALLDIRS)
55         for f in $(WINE_BINARIES); do \
56           if [ "$(MAIN_BINARY)" = "$$f" ]; \
57           then $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$(MODULE); \
58           else $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f; \
59           fi; \
60         done
61         $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
62
63 uninstall::
64         -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
65         $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
66
67 clean::
68         $(RM) version.c version-stamp
69
70 version-stamp: dummy
71         (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)
72
73 version.c: version-stamp
74         @cmp -s version-stamp $@ || cp version-stamp $@
75
76 @DEPENDENCIES@  # everything below this line is overwritten by make depend