Moved the debugger to programs/winedbg where it belongs.
[wine] / programs / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = none
6
7 SUBDIRS = \
8         avitools \
9         clock \
10         cmdlgtst \
11         control \
12         expand \
13         notepad \
14         osversioncheck \
15         progman \
16         regapi \
17         regedit \
18         regsvr32 \
19         regtest \
20         uninstaller \
21         view \
22         wcmd \
23         wineconsole \
24         winedbg \
25         winefile \
26         winemine \
27         winepath \
28         winetest \
29         winhelp \
30         winver
31
32 # Sub-directories to run make install into
33 INSTALLSUBDIRS = $(SUBDIRS)
34
35 # Programs to install in bin directory
36 # We don't install everything to avoid polluting /usr/bin too much
37 INSTALLPROGS = \
38         notepad \
39         progman \
40         regedit \
41         regsvr32 \
42         uninstaller \
43         wcmd \
44         wineconsole \
45         winedbg \
46         winefile \
47         winemine \
48         winepath \
49         winhelp
50
51 # Symlinks to apps that we want to run from inside the source tree
52 SYMLINKS = \
53         wineconsole.exe \
54         winedbg.exe
55
56 @MAKE_RULES@
57
58 all: wineapploader winelauncher $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT))
59
60 wineapploader: wineapploader.in
61         sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@
62
63 winelauncher: winelauncher.in
64         sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || $(RM) $@
65
66 # Rules for installation
67
68 .PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
69
70 install-apploader: wineapploader dummy
71         $(MKINSTALLDIRS) $(bindir)
72         $(INSTALL_SCRIPT) wineapploader $(bindir)/wineapploader
73
74 $(INSTALLPROGS:%=%/__installprog__): install-apploader
75         $(RM) $(bindir)/`dirname $@` && $(LN) $(bindir)/wineapploader $(bindir)/`dirname $@`
76
77 install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
78         $(RM) $(bindir)/wineapploader
79
80 install-progs: # nothing to do here
81
82 install:: winelauncher install-progs$(DLLEXT)
83         $(MKINSTALLDIRS) $(bindir)
84         $(INSTALL_SCRIPT) winelauncher $(bindir)/winelauncher
85
86 uninstall::
87         $(RM) $(bindir)/wineapploader $(bindir)/winelauncher $(INSTALLPROGS:%=$(bindir)/%)
88         -rmdir $(dlldir)
89
90 clean::
91         $(RM) wineapploader winelauncher $(SYMLINKS)
92
93 # Rules for testing
94
95 checklink:: $(SUBDIRS:%=%/__checklink__)
96
97 check test:: $(SUBDIRS:%=%/__test__)
98
99 # Rules for symlinks
100
101 wineconsole.exe$(DLLEXT): wineconsole/wineconsole.exe$(DLLEXT)
102         $(RM) $@ && $(LN_S) wineconsole/wineconsole.exe$(DLLEXT) $@
103
104 winedbg.exe$(DLLEXT): winedbg/winedbg.exe$(DLLEXT)
105         $(RM) $@ && $(LN_S) winedbg/winedbg.exe$(DLLEXT) $@
106
107 wineconsole/wineconsole.exe$(DLLEXT): wineconsole
108 winedbg/winedbg.exe$(DLLEXT): winedbg
109
110 ### Dependencies: