quartz: Don't release filters when they connect.
[wine/hacks.git] / loader / Makefile.in
blob2b3d457c56455da4ca533d5c761832f5df8a6b23
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = wine
7 C_SRCS = \
8 glibc.c \
9 kthread.c \
10 main.c \
11 preloader.c \
12 pthread.c
14 KTHREAD_OBJS = kthread.o main.o version.o
15 PTHREAD_OBJS = pthread.o main.o version.o
17 MAIN_BINARY = @MAIN_BINARY@
18 EXTRA_BINARIES = @EXTRA_BINARIES@
19 WINE_BINARIES = $(MAIN_BINARY) $(EXTRA_BINARIES)
21 PROGRAMS = \
22 wine \
23 wine-glibc \
24 wine-kthread \
25 wine-preloader \
26 wine-pthread\
28 MANPAGES = wine.man
30 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
32 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
34 @MAKE_RULES@
36 LIBPTHREAD = @LIBPTHREAD@
37 LDEXECFLAGS = @LDEXECFLAGS@
39 wine-glibc: glibc.o Makefile.in
40 $(CC) -o $@ glibc.o $(LIBWINE_LDFLAGS) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
42 wine-preloader: preloader.o Makefile.in
43 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
45 wine-kthread: $(KTHREAD_OBJS) Makefile.in
46 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE_LDFLAGS) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
48 wine-pthread: $(PTHREAD_OBJS) Makefile.in
49 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE_LDFLAGS) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
51 $(MODULE): $(MAIN_BINARY)
52 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
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)
63 uninstall::
64 -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
65 $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
67 clean::
68 $(RM) version.c version-stamp
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)
73 version.c: version-stamp
74 @cmp -s version-stamp $@ || cp version-stamp $@
76 @DEPENDENCIES@ # everything below this line is overwritten by make depend