Makefile.in 1.72 KB
Newer Older
1
DEFS      = -D__WINESRC__
2
EXTRALIBS = @LIBPOLL@
Alexandre Julliard's avatar
Alexandre Julliard committed
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 \
Alexandre Julliard's avatar
Alexandre Julliard committed
15
	event.c \
16
	fd.c \
17
	file.c \
18
	handle.c \
19
	hook.c \
20
	mach.c \
Mike McCormack's avatar
Mike McCormack committed
21
	mailslot.c \
22
	main.c \
23
	mapping.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
24
	mutex.c \
25
	named_pipe.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
26 27
	object.c \
	process.c \
28
	procfs.c \
29
	ptrace.c \
30
	queue.c \
31
	region.c \
32
	registry.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
33
	request.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
34
	semaphore.c \
35
	serial.c \
36
	signal.c \
37
	snapshot.c \
38
	sock.c \
39
	symlink.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
40
	thread.c \
41
	timer.c \
42
	token.c \
43
	trace.c \
44 45
	unicode.c \
	user.c \
46 47
	window.c \
	winstation.c
Alexandre Julliard's avatar
Alexandre Julliard committed
48

49
PROGRAMS = wineserver wineserver-installed
50 51 52

MANPAGE = wineserver.man
EXTRA_MANPAGES = wineserver.de.man wineserver.fr.man
Alexandre Julliard's avatar
Alexandre Julliard committed
53

54 55 56
INSTALLDIRS = \
	$(DESTDIR)$(bindir) \
	$(DESTDIR)$(mandir)/man$(prog_manext) \
57
	$(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
58
	$(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
59

60
all: $(PROGRAMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
61 62 63

@MAKE_RULES@

64
wineserver: $(OBJS)
65
	$(CC) -o $@ $(OBJS) $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS) $(LDRPATH_LOCAL)
Alexandre Julliard's avatar
Alexandre Julliard committed
66

67 68 69
wineserver-installed: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS) $(LDRPATH_INSTALL)

70
install install-lib:: wineserver-installed $(DESTDIR)$(bindir) install-man-pages
71
	$(INSTALL_PROGRAM) wineserver-installed $(DESTDIR)$(bindir)/wineserver
72 73

install-man-pages:: $(EXTRA_MANPAGES) $(INSTALLDIRS)
74
	$(INSTALL_DATA) wineserver.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)
75
	$(INSTALL_DATA) wineserver.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)
76 77

uninstall::
78
	$(RM) $(DESTDIR)$(bindir)/wineserver
79
	$(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)
80
	$(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wineserver.$(prog_manext)