Added xmldso.idl.
[wine.git] / loader / Makefile.in
blobbe99dbff6895bd2aadceb637f8ff1c80c470b136
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 WINE_BINARIES = @WINE_BINARIES@
18 MAIN_BINARY = @MAIN_BINARY@
20 MAN_TARGETS = wine.man
22 all: $(WINE_BINARIES) $(MODULE) $(MAN_TARGETS)
24 @MAKE_RULES@
26 LIBPTHREAD = @LIBPTHREAD@
27 LDEXECFLAGS = @LDEXECFLAGS@
29 wine-glibc: glibc.o Makefile.in
30 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
32 wine-preloader: preloader.o Makefile.in
33 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
35 wine-kthread: $(KTHREAD_OBJS) Makefile.in
36 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
38 wine-pthread: $(PTHREAD_OBJS) Makefile.in
39 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
41 $(MODULE): $(MAIN_BINARY)
42 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
44 wine.man: wine.man.in
45 sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
47 install:: $(WINE_BINARIES) $(MAN_TARGETS)
48 $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
49 for f in $(WINE_BINARIES); do \
50 if [ "$(MAIN_BINARY)" = "$$f" ]; \
51 then $(INSTALL_PROGRAM) $$f $(bindir)/$(MODULE); \
52 else $(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
53 fi; \
54 done
55 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
57 uninstall::
58 -cd $(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
59 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
61 clean::
62 $(RM) $(WINE_BINARIES) $(MODULE) $(MAN_TARGETS)
64 ### Dependencies: