Authors: Greg Turner <gmturner007@ameritech.net>, Ove Kaaven <ovek@transgaming.com>
[wine/hacks.git] / programs / Makefile.in
blob2c563eaa8e5cf4e76f79e69de16a5bf6bdb7df30
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 uninstaller \
23 view \
24 wcmd \
25 wineconsole \
26 winedbg \
27 winefile \
28 winemine \
29 winepath \
30 winhelp \
31 winver
33 # Sub-directories to run make install into
34 INSTALLSUBDIRS = \
35 avitools \
36 clock \
37 control \
38 expand \
39 notepad \
40 progman \
41 regedit \
42 regsvr32 \
43 rpcss \
44 rundll32 \
45 uninstaller \
46 wcmd \
47 wineconsole \
48 winedbg \
49 winefile \
50 winemine \
51 winepath \
52 winhelp \
53 winver
55 # Programs to install in bin directory
56 # We don't install everything to avoid polluting /usr/bin too much
57 INSTALLPROGS = \
58 notepad \
59 progman \
60 regedit \
61 regsvr32 \
62 uninstaller \
63 wcmd \
64 wineconsole \
65 winedbg \
66 winefile \
67 winemine \
68 winepath \
69 winhelp
71 # Symlinks to apps that we want to run from inside the source tree
72 SYMLINKS = \
73 rpcss.exe \
74 wcmd.exe \
75 wineconsole.exe \
76 winedbg.exe \
77 winhelp.exe
79 @MAKE_RULES@
81 all: wineapploader winelauncher $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT))
83 wineapploader: wineapploader.in
84 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@
86 winelauncher: winelauncher.in
87 sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || $(RM) $@
89 # Rules for installation
91 .PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
93 install-apploader: wineapploader dummy
94 $(MKINSTALLDIRS) $(bindir)
95 $(INSTALL_SCRIPT) wineapploader $(bindir)/wineapploader
97 $(INSTALLPROGS:%=%/__installprog__): install-apploader
98 $(RM) $(bindir)/`dirname $@` && $(LN) $(bindir)/wineapploader $(bindir)/`dirname $@`
100 install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
101 $(RM) $(bindir)/wineapploader
103 install-progs: # nothing to do here
105 install:: winelauncher install-progs$(DLLEXT)
106 $(MKINSTALLDIRS) $(bindir)
107 $(INSTALL_SCRIPT) winelauncher $(bindir)/winelauncher
109 uninstall::
110 $(RM) $(bindir)/wineapploader $(bindir)/winelauncher $(INSTALLPROGS:%=$(bindir)/%)
111 -rmdir $(dlldir)
113 clean::
114 $(RM) wineapploader winelauncher $(SYMLINKS)
116 # Rules for testing
118 check test:: $(SUBDIRS:%=%/__test__)
120 # Rules for symlinks
122 rpcss.exe$(DLLEXT): rpcss/rpcss.exe$(DLLEXT)
123 $(RM) $@ && $(LN_S) rpcss/rpcss.exe$(DLLEXT) $@
125 wcmd.exe$(DLLEXT): wcmd/wcmd.exe$(DLLEXT)
126 $(RM) $@ && $(LN_S) wcmd/wcmd.exe$(DLLEXT) $@
128 wineconsole.exe$(DLLEXT): wineconsole/wineconsole.exe$(DLLEXT)
129 $(RM) $@ && $(LN_S) wineconsole/wineconsole.exe$(DLLEXT) $@
131 winedbg.exe$(DLLEXT): winedbg/winedbg.exe$(DLLEXT)
132 $(RM) $@ && $(LN_S) winedbg/winedbg.exe$(DLLEXT) $@
134 winhelp.exe$(DLLEXT): winhelp/winhelp.exe$(DLLEXT)
135 $(RM) $@ && $(LN_S) winhelp/winhelp.exe$(DLLEXT) $@
137 wcmd/wcmd.exe$(DLLEXT): wcmd
138 wineconsole/wineconsole.exe$(DLLEXT): wineconsole
139 winedbg/winedbg.exe$(DLLEXT): winedbg
140 winhelp/winhelp.exe$(DLLEXT): winhelp
142 ### Dependencies: