Implemented RtlExpandEnvironmentStrings_U and fixed an incorrect
[wine] / programs / Makefile.in
CommitLineData
c53ceba4
AJ
1TOPSRCDIR = @top_srcdir@
2TOPOBJDIR = ..
3SRCDIR = @srcdir@
4VPATH = @srcdir@
5MODULE = none
6
3536316a 7SUBDIRS = \
3536316a
AJ
8 avitools \
9 clock \
10 cmdlgtst \
d30dfd24 11 control \
acfda14a 12 expand \
44ed71f5 13 notepad \
3536316a 14 osversioncheck \
44ed71f5 15 progman \
3536316a 16 regapi \
4e2e176c 17 regedit \
2f0d85c2 18 regsvr32 \
3536316a 19 regtest \
d77294a8 20 rpcss \
15e8e0a2 21 rundll32 \
ba02ae41 22 start \
4eefb96d 23 uninstaller \
3536316a 24 view \
74f440ea 25 wcmd \
175d0595 26 wineboot \
82ce2cc7 27 winecfg \
0b83d4cb 28 wineconsole \
f264bd32 29 winedbg \
65a42168 30 winefile \
a3f2380f 31 winemine \
0d8a9fac 32 winepath \
fedc4117 33 winevdm \
44ed71f5
AJ
34 winhelp \
35 winver
02ed4c23 36
f673b71e 37# Sub-directories to run make install into
8a3c7d13
AJ
38INSTALLSUBDIRS = \
39 avitools \
40 clock \
41 control \
42 expand \
43 notepad \
44 progman \
45 regedit \
46 regsvr32 \
d77294a8 47 rpcss \
15e8e0a2 48 rundll32 \
ba02ae41 49 start \
8a3c7d13
AJ
50 uninstaller \
51 wcmd \
175d0595 52 wineboot \
82ce2cc7 53 winecfg \
8a3c7d13
AJ
54 wineconsole \
55 winedbg \
56 winefile \
57 winemine \
58 winepath \
11b0f75d 59 winevdm \
8a3c7d13
AJ
60 winhelp \
61 winver
f673b71e 62
3536316a
AJ
63# Programs to install in bin directory
64# We don't install everything to avoid polluting /usr/bin too much
65INSTALLPROGS = \
3536316a
AJ
66 notepad \
67 progman \
68 regedit \
69 regsvr32 \
70 uninstaller \
71 wcmd \
175d0595 72 wineboot \
82ce2cc7 73 winecfg \
3536316a
AJ
74 wineconsole \
75 winedbg \
65a42168 76 winefile \
3536316a
AJ
77 winemine \
78 winepath \
79 winhelp
7dd9e339 80
3536316a
AJ
81# Symlinks to apps that we want to run from inside the source tree
82SYMLINKS = \
d77294a8 83 rpcss.exe \
9e2ab038 84 wcmd.exe \
3536316a 85 wineconsole.exe \
b6aad502 86 winedbg.exe \
fedc4117 87 winevdm.exe \
b6aad502 88 winhelp.exe
02ed4c23 89
c53ceba4 90@MAKE_RULES@
02ed4c23 91
f673b71e 92all: wineapploader winelauncher $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT))
3536316a
AJ
93
94wineapploader: wineapploader.in
95 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@
96
f673b71e
AJ
97winelauncher: winelauncher.in
98 sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || $(RM) $@
99
3536316a
AJ
100# Rules for installation
101
102.PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
103
104install-apploader: wineapploader dummy
105 $(MKINSTALLDIRS) $(bindir)
106 $(INSTALL_SCRIPT) wineapploader $(bindir)/wineapploader
107
108$(INSTALLPROGS:%=%/__installprog__): install-apploader
109 $(RM) $(bindir)/`dirname $@` && $(LN) $(bindir)/wineapploader $(bindir)/`dirname $@`
1285c2f9 110
3536316a
AJ
111install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
112 $(RM) $(bindir)/wineapploader
626f425b 113
3536316a 114install-progs: # nothing to do here
7dd9e339 115
f673b71e
AJ
116install:: winelauncher install-progs$(DLLEXT)
117 $(MKINSTALLDIRS) $(bindir)
118 $(INSTALL_SCRIPT) winelauncher $(bindir)/winelauncher
7dd9e339 119
f673b71e
AJ
120uninstall::
121 $(RM) $(bindir)/wineapploader $(bindir)/winelauncher $(INSTALLPROGS:%=$(bindir)/%)
3536316a
AJ
122 -rmdir $(dlldir)
123
124clean::
f673b71e 125 $(RM) wineapploader winelauncher $(SYMLINKS)
3536316a
AJ
126
127# Rules for testing
7dd9e339 128
019a7f3d
AJ
129check test:: $(SUBDIRS:%=%/__test__)
130
3536316a
AJ
131# Rules for symlinks
132
d77294a8
AJ
133rpcss.exe$(DLLEXT): rpcss/rpcss.exe$(DLLEXT)
134 $(RM) $@ && $(LN_S) rpcss/rpcss.exe$(DLLEXT) $@
135
9e2ab038
UB
136wcmd.exe$(DLLEXT): wcmd/wcmd.exe$(DLLEXT)
137 $(RM) $@ && $(LN_S) wcmd/wcmd.exe$(DLLEXT) $@
138
3536316a
AJ
139wineconsole.exe$(DLLEXT): wineconsole/wineconsole.exe$(DLLEXT)
140 $(RM) $@ && $(LN_S) wineconsole/wineconsole.exe$(DLLEXT) $@
141
f264bd32
AJ
142winedbg.exe$(DLLEXT): winedbg/winedbg.exe$(DLLEXT)
143 $(RM) $@ && $(LN_S) winedbg/winedbg.exe$(DLLEXT) $@
3536316a 144
fedc4117
AJ
145winevdm.exe$(DLLEXT): winevdm/winevdm.exe$(DLLEXT)
146 $(RM) $@ && $(LN_S) winevdm/winevdm.exe$(DLLEXT) $@
147
b6aad502
EP
148winhelp.exe$(DLLEXT): winhelp/winhelp.exe$(DLLEXT)
149 $(RM) $@ && $(LN_S) winhelp/winhelp.exe$(DLLEXT) $@
150
9e2ab038 151wcmd/wcmd.exe$(DLLEXT): wcmd
3536316a 152wineconsole/wineconsole.exe$(DLLEXT): wineconsole
f264bd32 153winedbg/winedbg.exe$(DLLEXT): winedbg
fedc4117 154winevdm/winevdm.exe$(DLLEXT): winevdm
b6aad502 155winhelp/winhelp.exe$(DLLEXT): winhelp
85ed45e3 156
c53ceba4 157### Dependencies: