Modify widl to put the C COM macros inside an #ifdef COBJMACROS block
[wine] / tools / Makefile.in
1 DEFS      = -DLEX_OUTPUT_ROOT="\"@LEX_OUTPUT_ROOT@\""
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = none
7
8 PROGRAMS = \
9         bin2res \
10         fnt2bdf \
11         makedep \
12         wineprefixcreate
13
14 C_SRCS = \
15         bin2res.c \
16         fnt2bdf.c \
17         makedep.c
18
19 SUBDIRS = \
20         widl \
21         winebuild \
22         winedump \
23         winegcc \
24         wmc \
25         wrc
26
27 INSTALLSUBDIRS = $(SUBDIRS)
28
29 EXTRASUBDIRS = winapi_check
30
31 UPDATE_DESKTOP_DATABASE = update-desktop-database
32
33 all: $(PROGRAMS) $(SUBDIRS)
34
35 @MAKE_RULES@
36
37 makedep: makedep.o
38         $(CC) $(CFLAGS) -o makedep makedep.o
39
40 fnt2bdf: fnt2bdf.o
41         $(CC) $(CFLAGS) -o fnt2bdf fnt2bdf.o $(LIBPORT)
42
43 bin2res: bin2res.o
44         $(CC) $(CFLAGS) -o bin2res bin2res.o $(LIBPORT)
45
46 wineprefixcreate: wineprefixcreate.in
47         sed -e 's,@dlldir\@,$(dlldir),g' -e 's,@datadir\@,$(datadir),g' $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
48         chmod +x wineprefixcreate
49
50 install:: wineprefixcreate
51         $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) $(datadir)/wine $(datadir)/applications
52         $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
53         $(INSTALL_SCRIPT) wineprefixcreate $(bindir)/wineprefixcreate
54         $(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
55         $(INSTALL_DATA) $(SRCDIR)/wine.inf $(datadir)/wine/wine.inf
56         $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(datadir)/applications/wine.desktop
57         -$(UPDATE_DESKTOP_DATABASE)
58
59 uninstall::
60         $(RM) $(bindir)/winemaker $(bindir)/wineprefixcreate $(mandir)/man$(prog_manext)/winemaker.$(prog_manext) \
61               $(datadir)/wine/wine.inf $(datadir)/applications/wine.desktop
62         -$(UPDATE_DESKTOP_DATABASE)
63
64 ### Dependencies: