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