Fixed GetFileVersionInfoSizeA tests on NT.
[wine/multimedia.git] / loader / Makefile.in
blobf07a2dab7af3168794a362189607555fe3c765d3
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 all: $(WINE_BINARIES) $(MODULE)
22 @MAKE_RULES@
24 LIBPTHREAD = @LIBPTHREAD@
25 LDEXECFLAGS = @LDEXECFLAGS@
27 wine-glibc: glibc.o Makefile.in
28 $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
30 wine-preloader: preloader.o Makefile.in
31 $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x78000000 preloader.o $(LIBPORT) $(LDFLAGS)
33 wine-kthread: $(KTHREAD_OBJS) Makefile.in
34 $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
36 wine-pthread: $(PTHREAD_OBJS) Makefile.in
37 $(CC) -o $@ $(LDEXECFLAGS) $(PTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
39 $(MODULE): $(MAIN_BINARY)
40 $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
42 install:: $(WINE_BINARIES)
43 $(MKINSTALLDIRS) $(bindir)
44 for f in $(WINE_BINARIES); do \
45 if [ "$(MAIN_BINARY)" = "$$f" ]; \
46 then $(INSTALL_PROGRAM) $$f $(bindir)/$(MODULE); \
47 else $(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
48 fi; \
49 done
51 uninstall::
52 -cd $(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
54 clean::
55 $(RM) $(WINE_BINARIES) $(MODULE)
57 ### Dependencies: