Added ctrl-c support.
[wine.git] / programs / Makefile.in
blobacaccfecd5835507721a04e5910b05f7950123e4
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = none
7 SUBDIRS = \
8 $(TOPOBJDIR)/debugger \
9 avitools \
10 clock \
11 cmdlgtst \
12 control \
13 expand \
14 notepad \
15 osversioncheck \
16 progman \
17 regapi \
18 regedit \
19 regsvr32 \
20 regtest \
21 uninstaller \
22 view \
23 wcmd \
24 wineconsole \
25 winemine \
26 winepath \
27 winetest \
28 winhelp \
29 winver
31 # Programs to install in bin directory
32 # We don't install everything to avoid polluting /usr/bin too much
33 INSTALLPROGS = \
34 expand \
35 notepad \
36 progman \
37 regedit \
38 regsvr32 \
39 uninstaller \
40 wcmd \
41 wineconsole \
42 winedbg \
43 winemine \
44 winepath \
45 winhelp
47 # Symlinks to apps that we want to run from inside the source tree
48 SYMLINKS = \
49 wineconsole.exe \
50 winedbg.exe \
51 winetest.exe
53 @MAKE_RULES@
55 all: wineapploader $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT))
57 wineapploader: wineapploader.in
58 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@
60 # Rules for installation
62 .PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
64 install-apploader: wineapploader dummy
65 $(MKINSTALLDIRS) $(bindir)
66 $(INSTALL_SCRIPT) wineapploader $(bindir)/wineapploader
68 $(INSTALLPROGS:%=%/__installprog__): install-apploader
69 $(RM) $(bindir)/`dirname $@` && $(LN) $(bindir)/wineapploader $(bindir)/`dirname $@`
71 install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
72 $(RM) $(bindir)/wineapploader
74 install-progs: # nothing to do here
76 install:: $(SUBDIRS:%=%/__install__) install-progs$(DLLEXT)
78 uninstall:: $(SUBDIRS:%=%/__uninstall__)
79 $(RM) $(bindir)/wineapploader $(INSTALLPROGS:%=$(bindir)/%)
80 -rmdir $(dlldir)
82 clean::
83 $(RM) wineapploader $(SYMLINKS)
85 # Rules for testing
87 $(SUBDIRS:%=%/__checklink__): dummy
88 @cd `dirname $@` && $(MAKE) checklink
90 checklink:: $(SUBDIRS:%=%/__checklink__)
92 check test:: $(SUBDIRS:%=%/__test__)
94 # Rules for symlinks
96 wineconsole.exe$(DLLEXT): wineconsole/wineconsole.exe$(DLLEXT)
97 $(RM) $@ && $(LN_S) wineconsole/wineconsole.exe$(DLLEXT) $@
99 winedbg.exe$(DLLEXT): $(TOPOBJDIR)/debugger/winedbg.exe$(DLLEXT)
100 $(RM) $@ && $(LN_S) $(TOPOBJDIR)/debugger/winedbg.exe$(DLLEXT) $@
102 winetest.exe$(DLLEXT): winetest/winetest.exe$(DLLEXT)
103 $(RM) $@ && $(LN_S) winetest/winetest.exe$(DLLEXT) $@
105 wineconsole/wineconsole.exe$(DLLEXT): wineconsole
106 $(TOPOBJDIR)/debugger/winedbg.exe$(DLLEXT): $(TOPOBJDIR)/debugger
107 winetest/winetest.exe$(DLLEXT): winetest
109 ### Dependencies: