makefiles: Add a standard header for all makefiles to replace the common variable...
[wine] / server / Makefile.in
1 DEFS      = -D__WINESRC__
2 EXTRALIBS = @LIBPOLL@
3
4 C_SRCS = \
5         async.c \
6         atom.c \
7         change.c \
8         class.c \
9         clipboard.c \
10         completion.c \
11         console.c \
12         debugger.c \
13         device.c \
14         directory.c \
15         event.c \
16         fd.c \
17         file.c \
18         handle.c \
19         hook.c \
20         mach.c \
21         mailslot.c \
22         main.c \
23         mapping.c \
24         mutex.c \
25         named_pipe.c \
26         object.c \
27         process.c \
28         procfs.c \
29         ptrace.c \
30         queue.c \
31         region.c \
32         registry.c \
33         request.c \
34         semaphore.c \
35         serial.c \
36         signal.c \
37         snapshot.c \
38         sock.c \
39         symlink.c \
40         thread.c \
41         timer.c \
42         token.c \
43         trace.c \
44         unicode.c \
45         user.c \
46         window.c \
47         winstation.c
48
49 PROGRAMS = wineserver wineserver-installed
50 MANPAGES = wineserver.man wineserver.de.man wineserver.fr.man
51
52 INSTALLDIRS = \
53         $(DESTDIR)$(bindir) \
54         $(DESTDIR)$(mandir)/man$(prog_manext) \
55         $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
56         $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
57
58 all: $(PROGRAMS) $(MANPAGES)
59
60 @MAKE_RULES@
61
62 wineserver: $(OBJS)
63         $(CC) -o $@ $(OBJS) $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS) $(LDRPATH_LOCAL)
64
65 wineserver-installed: $(OBJS)
66         $(CC) -o $@ $(OBJS) $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS) $(LDRPATH_INSTALL)
67
68 install install-lib:: wineserver-installed $(MANPAGES) $(INSTALLDIRS)
69         $(INSTALL_PROGRAM) wineserver-installed $(DESTDIR)$(bindir)/wineserver
70         $(INSTALL_DATA) wineserver.man $(DESTDIR)$(mandir)/man$(prog_manext)/wineserver.$(prog_manext)
71         $(INSTALL_DATA) wineserver.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)
72         $(INSTALL_DATA) wineserver.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)
73
74 uninstall::
75         $(RM) $(DESTDIR)$(bindir)/wineserver $(DESTDIR)$(mandir)/man$(prog_manext)/wineserver.$(prog_manext)
76         $(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)
77         $(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)