user: Allow creating windows of the desktop class.
[wine/hacks.git] / loader / Makefile.in
blobf1cfd26f20981845f2fa8b1de97c9e0e7e25a6cc
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
15 PTHREAD_OBJS = pthread.o main.o
17 MAIN_BINARY = @MAIN_BINARY@
18 EXTRA_BINARIES = @EXTRA_BINARIES@
19 WINE_BINARIES = $(MAIN_BINARY) $(EXTRA_BINARIES)
21 MANPAGES = wine.man
23 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
25 @MAKE_RULES@
27 LIBPTHREAD = @LIBPTHREAD@
28 LDEXECFLAGS = @LDEXECFLAGS@
29 LDEXERPATH = @LDEXERPATH@
31 wine-glibc: glibc.o Makefile.in
32 $(CC) -o $@ glibc.o $(LDEXERPATH) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
34 wine-preloader: preloader.o Makefile.in
35 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
37 wine-kthread: $(KTHREAD_OBJS) Makefile.in
38 $(CC) -o $@ $(LDEXECFLAGS) $(LDEXERPATH) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
40 wine-pthread: $(PTHREAD_OBJS) Makefile.in
41 $(CC) -o $@ $(LDEXECFLAGS) $(LDEXERPATH) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
43 $(MODULE): $(MAIN_BINARY)
44 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
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)
56 uninstall::
57 -cd $(DESTDIR)$(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
58 $(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
60 clean::
61 $(RM) $(WINE_BINARIES) $(MODULE)
63 ### Dependencies: