wined3d: Fix the stretch_rect_fbo() declaration to match the implementation.
[wine/hacks.git] / loader / Makefile.in
blobf94e08f9c927e78999a619a1a670d4a046e149ee
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-glibc-installed \
25 wine-kthread \
26 wine-kthread-installed \
27 wine-preloader \
28 wine-preloader-installed \
29 wine-pthread \
30 wine-pthread-installed
32 MANPAGES = wine.man
34 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
36 all: $(WINE_BINARIES) $(WINE_BINARIES:%=%-installed) $(MODULE) $(MANPAGES)
38 @MAKE_RULES@
40 LIBPTHREAD = @LIBPTHREAD@
41 LDEXECFLAGS = @LDEXECFLAGS@
43 wine-glibc: glibc.o Makefile.in
44 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
46 wine-glibc-installed: glibc.o Makefile.in
47 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
49 wine-preloader wine-preloader-installed: preloader.o Makefile.in
50 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
52 wine-kthread: $(KTHREAD_OBJS) Makefile.in
53 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
55 wine-kthread-installed: $(KTHREAD_OBJS) Makefile.in
56 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
58 wine-pthread: $(PTHREAD_OBJS) Makefile.in
59 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
61 wine-pthread-installed: $(PTHREAD_OBJS) Makefile.in
62 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
64 $(MODULE): $(MAIN_BINARY)
65 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
67 install:: $(WINE_BINARIES:%=%-installed) $(MANPAGES) $(INSTALLDIRS)
68 for f in $(WINE_BINARIES); do \
69 if [ "$(MAIN_BINARY)" = "$$f" ]; \
70 then $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$(MODULE); \
71 else $(INSTALL_PROGRAM) $$f-installed $(DESTDIR)$(bindir)/$$f; \
72 fi; \
73 done
74 $(INSTALL_DATA) wine.man $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
76 uninstall::
77 -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
78 $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
80 clean::
81 $(RM) version.c version-stamp
83 version-stamp: dummy
84 (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)
86 version.c: version-stamp
87 @cmp -s version-stamp $@ || cp version-stamp $@
89 @DEPENDENCIES@ # everything below this line is overwritten by make depend