Fix memory leaks on error path.
[wine/multimedia.git] / programs / Makefile.in
blob8f31bfcce35ed89a042cca3716a37919e0e540ff
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 winecfg \
28 wineconsole \
29 winedbg \
30 winefile \
31 winemenubuilder \
32 winemine \
33 winepath \
34 winevdm \
35 winhelp \
36 winver
38 # Sub-directories to run make install into
39 INSTALLSUBDIRS = \
40 avitools \
41 clock \
42 control \
43 expand \
44 notepad \
45 progman \
46 regedit \
47 regsvr32 \
48 rpcss \
49 rundll32 \
50 start \
51 uninstaller \
52 wcmd \
53 wineboot \
54 winecfg \
55 wineconsole \
56 winedbg \
57 winefile \
58 winemenubuilder \
59 winemine \
60 winepath \
61 winevdm \
62 winhelp \
63 winver
65 # Programs to install in bin directory
66 # We don't install everything to avoid polluting /usr/bin too much
67 INSTALLPROGS = \
68 notepad \
69 progman \
70 regedit \
71 regsvr32 \
72 uninstaller \
73 wcmd \
74 wineboot \
75 winecfg \
76 wineconsole \
77 winedbg \
78 winefile \
79 winemine \
80 winepath \
81 winhelp
83 # Symlinks to apps that we want to run from inside the source tree
84 SYMLINKS = \
85 rpcss.exe \
86 wcmd.exe \
87 wineconsole.exe \
88 winedbg.exe \
89 winemenubuilder.exe \
90 winevdm.exe \
91 winhelp.exe
93 @MAKE_RULES@
95 all: wineapploader winelauncher $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT))
97 wineapploader: wineapploader.in
98 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
100 winelauncher: winelauncher.in
101 sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || ($(RM) $@ && false)
103 # Rules for installation
105 .PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
107 install-apploader: wineapploader dummy
108 $(MKINSTALLDIRS) $(bindir)
109 $(INSTALL_SCRIPT) wineapploader $(bindir)/wineapploader
111 $(INSTALLPROGS:%=%/__installprog__): install-apploader
112 $(RM) $(bindir)/`dirname $@` && $(LN) $(bindir)/wineapploader $(bindir)/`dirname $@`
114 install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
115 $(RM) $(bindir)/wineapploader
117 install-progs: # nothing to do here
119 install:: winelauncher install-progs$(DLLEXT)
120 $(MKINSTALLDIRS) $(bindir)
121 $(INSTALL_SCRIPT) winelauncher $(bindir)/winelauncher
123 uninstall::
124 $(RM) $(bindir)/wineapploader $(bindir)/winelauncher $(INSTALLPROGS:%=$(bindir)/%)
125 -rmdir $(dlldir)
127 clean::
128 $(RM) wineapploader winelauncher $(SYMLINKS)
130 # Rules for testing
132 check test:: $(SUBDIRS:%=%/__test__)
134 # Rules for symlinks
136 rpcss.exe$(DLLEXT): rpcss/rpcss.exe$(DLLEXT)
137 $(RM) $@ && $(LN_S) rpcss/rpcss.exe$(DLLEXT) $@
139 wcmd.exe$(DLLEXT): wcmd/wcmd.exe$(DLLEXT)
140 $(RM) $@ && $(LN_S) wcmd/wcmd.exe$(DLLEXT) $@
142 wineconsole.exe$(DLLEXT): wineconsole/wineconsole.exe$(DLLEXT)
143 $(RM) $@ && $(LN_S) wineconsole/wineconsole.exe$(DLLEXT) $@
145 winedbg.exe$(DLLEXT): winedbg/winedbg.exe$(DLLEXT)
146 $(RM) $@ && $(LN_S) winedbg/winedbg.exe$(DLLEXT) $@
148 winemenubuilder.exe$(DLLEXT): winemenubuilder/winemenubuilder.exe$(DLLEXT)
149 $(RM) $@ && $(LN_S) winemenubuilder/winemenubuilder.exe$(DLLEXT) $@
151 winevdm.exe$(DLLEXT): winevdm/winevdm.exe$(DLLEXT)
152 $(RM) $@ && $(LN_S) winevdm/winevdm.exe$(DLLEXT) $@
154 winhelp.exe$(DLLEXT): winhelp/winhelp.exe$(DLLEXT)
155 $(RM) $@ && $(LN_S) winhelp/winhelp.exe$(DLLEXT) $@
157 wcmd/wcmd.exe$(DLLEXT): wcmd
158 wineconsole/wineconsole.exe$(DLLEXT): wineconsole
159 winedbg/winedbg.exe$(DLLEXT): winedbg
160 winemenubuilder/winemenubuilder.exe$(DLLEXT): winemenubuilder
161 winevdm/winevdm.exe$(DLLEXT): winevdm
162 winhelp/winhelp.exe$(DLLEXT): winhelp
164 ### Dependencies: