Documentation updates.
[wine/dcerpc.git] / programs / Makefile.in
blob643fdfa01a6172ae07d7e35203b3d7f169de6a20
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = none
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 rpcss \
21 rundll32 \
22 start \
23 uninstaller \
24 view \
25 wcmd \
26 wineboot \
27 wineconsole \
28 winedbg \
29 winefile \
30 winemine \
31 winepath \
32 winhelp \
33 winver
35 # Sub-directories to run make install into
36 INSTALLSUBDIRS = \
37 avitools \
38 clock \
39 control \
40 expand \
41 notepad \
42 progman \
43 regedit \
44 regsvr32 \
45 rpcss \
46 rundll32 \
47 start \
48 uninstaller \
49 wcmd \
50 wineboot \
51 wineconsole \
52 winedbg \
53 winefile \
54 winemine \
55 winepath \
56 winhelp \
57 winver
59 # Programs to install in bin directory
60 # We don't install everything to avoid polluting /usr/bin too much
61 INSTALLPROGS = \
62 notepad \
63 progman \
64 regedit \
65 regsvr32 \
66 uninstaller \
67 wcmd \
68 wineboot \
69 wineconsole \
70 winedbg \
71 winefile \
72 winemine \
73 winepath \
74 winhelp
76 # Symlinks to apps that we want to run from inside the source tree
77 SYMLINKS = \
78 rpcss.exe \
79 wcmd.exe \
80 wineconsole.exe \
81 winedbg.exe \
82 winhelp.exe
84 @MAKE_RULES@
86 all: wineapploader winelauncher $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT))
88 wineapploader: wineapploader.in
89 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@
91 winelauncher: winelauncher.in
92 sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || $(RM) $@
94 # Rules for installation
96 .PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
98 install-apploader: wineapploader dummy
99 $(MKINSTALLDIRS) $(bindir)
100 $(INSTALL_SCRIPT) wineapploader $(bindir)/wineapploader
102 $(INSTALLPROGS:%=%/__installprog__): install-apploader
103 $(RM) $(bindir)/`dirname $@` && $(LN) $(bindir)/wineapploader $(bindir)/`dirname $@`
105 install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
106 $(RM) $(bindir)/wineapploader
108 install-progs: # nothing to do here
110 install:: winelauncher install-progs$(DLLEXT)
111 $(MKINSTALLDIRS) $(bindir)
112 $(INSTALL_SCRIPT) winelauncher $(bindir)/winelauncher
114 uninstall::
115 $(RM) $(bindir)/wineapploader $(bindir)/winelauncher $(INSTALLPROGS:%=$(bindir)/%)
116 -rmdir $(dlldir)
118 clean::
119 $(RM) wineapploader winelauncher $(SYMLINKS)
121 # Rules for testing
123 check test:: $(SUBDIRS:%=%/__test__)
125 # Rules for symlinks
127 rpcss.exe$(DLLEXT): rpcss/rpcss.exe$(DLLEXT)
128 $(RM) $@ && $(LN_S) rpcss/rpcss.exe$(DLLEXT) $@
130 wcmd.exe$(DLLEXT): wcmd/wcmd.exe$(DLLEXT)
131 $(RM) $@ && $(LN_S) wcmd/wcmd.exe$(DLLEXT) $@
133 wineconsole.exe$(DLLEXT): wineconsole/wineconsole.exe$(DLLEXT)
134 $(RM) $@ && $(LN_S) wineconsole/wineconsole.exe$(DLLEXT) $@
136 winedbg.exe$(DLLEXT): winedbg/winedbg.exe$(DLLEXT)
137 $(RM) $@ && $(LN_S) winedbg/winedbg.exe$(DLLEXT) $@
139 winhelp.exe$(DLLEXT): winhelp/winhelp.exe$(DLLEXT)
140 $(RM) $@ && $(LN_S) winhelp/winhelp.exe$(DLLEXT) $@
142 wcmd/wcmd.exe$(DLLEXT): wcmd
143 wineconsole/wineconsole.exe$(DLLEXT): wineconsole
144 winedbg/winedbg.exe$(DLLEXT): winedbg
145 winhelp/winhelp.exe$(DLLEXT): winhelp
147 ### Dependencies: