Renamed all .cvsignore files to .gitignore.
[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
15 PTHREAD_OBJS = pthread.o main.o
16
17 WINE_BINARIES = @WINE_BINARIES@
18 MAIN_BINARY   = @MAIN_BINARY@
19
20 MANPAGES = wine.man
21
22 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
23
24 @MAKE_RULES@
25
26 LIBPTHREAD  = @LIBPTHREAD@
27 LDEXECFLAGS = @LDEXECFLAGS@
28
29 wine-glibc: glibc.o Makefile.in
30         $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
31
32 wine-preloader: preloader.o Makefile.in
33         $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
34
35 wine-kthread: $(KTHREAD_OBJS) Makefile.in
36         $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
37
38 wine-pthread: $(PTHREAD_OBJS) Makefile.in
39         $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
40
41 $(MODULE): $(MAIN_BINARY)
42         $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
43
44 install:: $(WINE_BINARIES) $(MANPAGES)
45         $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
46         for f in $(WINE_BINARIES); do \
47           if [ "$(MAIN_BINARY)" = "$$f" ]; \
48           then $(INSTALL_PROGRAM) $$f $(bindir)/$(MODULE); \
49           else $(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
50           fi; \
51         done
52         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
53
54 uninstall::
55         -cd $(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
56         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
57
58 clean::
59         $(RM) $(WINE_BINARIES) $(MODULE)
60
61 ### Dependencies: