widl: Output calls for the new versions of the marshalling and unmarshalling routines...
[wine/gsoc_dplay.git] / loader / Makefile.in
blob24f757c3155ee5960c12275b23eb1ec8cb2c233c
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = wine
7 C_SRCS = \
8 freebsd.c \
9 glibc.c \
10 kthread.c \
11 main.c \
12 preloader.c \
13 pthread.c
15 KTHREAD_OBJS = kthread.o main.o version.o
16 PTHREAD_OBJS = pthread.o main.o version.o
18 MAIN_BINARY = @MAIN_BINARY@
19 EXTRA_BINARIES = @EXTRA_BINARIES@
20 WINE_BINARIES = $(MAIN_BINARY) $(EXTRA_BINARIES)
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
35 MANPAGES = wine.man wine.de.man
37 INSTALLDIRS = \
38 $(DESTDIR)$(bindir) \
39 $(DESTDIR)$(mandir)/man$(prog_manext) \
40 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)
42 all: $(WINE_BINARIES) $(WINE_BINARIES:%=%-installed) $(MODULE) $(MANPAGES)
44 @MAKE_RULES@
46 LIBPTHREAD = @LIBPTHREAD@
47 LDEXECFLAGS = @LDEXECFLAGS@
49 wine-freebsd: freebsd.o Makefile.in
50 $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
52 wine-freebsd-installed: freebsd.o Makefile.in
53 $(CC) -o $@ freebsd.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
55 wine-glibc: glibc.o Makefile.in
56 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
58 wine-glibc-installed: glibc.o Makefile.in
59 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
61 wine-preloader wine-preloader-installed: preloader.o Makefile.in
62 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
64 wine-kthread: $(KTHREAD_OBJS) Makefile.in
65 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
67 wine-kthread-installed: $(KTHREAD_OBJS) Makefile.in
68 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
70 wine-pthread: $(PTHREAD_OBJS) Makefile.in
71 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
73 wine-pthread-installed: $(PTHREAD_OBJS) Makefile.in
74 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
76 $(MODULE): $(MAIN_BINARY)
77 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
79 install:: $(WINE_BINARIES:%=%-installed) $(MANPAGES) $(INSTALLDIRS)
80 for f in $(WINE_BINARIES); do \
81 if [ "$(MAIN_BINARY)" = "$$f" ]; \
82 then $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$(MODULE); \
83 else $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$$f; \
84 fi; \
85 done
86 $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
87 $(INSTALL_DATA) wine.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
89 uninstall::
90 -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
91 $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
92 $(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
94 clean::
95 $(RM) version.c version-stamp
97 version-stamp: dummy
98 (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)
100 version.c: version-stamp
101 @cmp -s version-stamp $@ || cp version-stamp $@
103 @DEPENDENCIES@ # everything below this line is overwritten by make depend