Added some flex options to avoid compiler warnings.
[wine/hacks.git] / loader / Makefile.in
blob60a7e0ebd44d3663cb2838417560d0d2940b30fe
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 MANPAGES = wine.man
22 all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
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 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)
54 uninstall::
55 -cd $(bindir) && $(RM) $(WINE_BINARIES) $(MODULE)
56 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
58 clean::
59 $(RM) $(WINE_BINARIES) $(MODULE)
61 ### Dependencies: