widl: Modify generic_msg() to behave like all the other Wine tracing methods, that...
[wine] / tools / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 EXEEXT    = @EXEEXT@
6 MODULE    = none
7 EXTRAINCL = @FREETYPEINCL@
8 FREETYPELIBS = @FREETYPELIBS@
9
10 PROGRAMS = \
11         fnt2bdf$(EXEEXT) \
12         fnt2fon$(EXEEXT) \
13         make_ctests$(EXEEXT) \
14         makedep$(EXEEXT) \
15         relpath$(EXEEXT) \
16         sfnt2fnt$(EXEEXT) \
17         wineprefixcreate
18
19 MANPAGES = \
20         winemaker.man \
21         wineprefixcreate.man
22
23 C_SRCS = \
24         fnt2bdf.c \
25         fnt2fon.c \
26         make_ctests.c \
27         makedep.c \
28         relpath.c \
29         sfnt2fnt.c \
30
31 INSTALLSUBDIRS = \
32         widl \
33         winebuild \
34         winedump \
35         winegcc \
36         wmc \
37         wrc
38
39 SUBDIRS = $(INSTALLSUBDIRS)
40
41 EXTRASUBDIRS = winapi
42
43 INSTALLDIRS = \
44         $(DESTDIR)$(bindir) \
45         $(DESTDIR)$(datadir)/applications \
46         $(DESTDIR)$(datadir)/wine \
47         $(DESTDIR)$(mandir)/man$(prog_manext)
48
49 UPDATE_DESKTOP_DATABASE = update-desktop-database
50
51 all: $(PROGRAMS) $(MANPAGES) $(SUBDIRS)
52
53 @MAKE_RULES@
54
55 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
56         $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
57
58 make_ctests$(EXEEXT): make_ctests.o
59         $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
60
61 fnt2bdf$(EXEEXT): fnt2bdf.o
62         $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
63
64 fnt2fon$(EXEEXT): fnt2fon.o
65         $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
66
67 relpath$(EXEEXT): relpath.o
68         $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
69
70 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
71         $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
72
73 wineprefixcreate: wineprefixcreate.in relpath$(EXEEXT)
74         sed -e "s,@bintodlldir\@,`$(RELPATH) $(bindir) $(dlldir)`,g" -e "s,@bintodatadir\@,`$(RELPATH) $(bindir) $(datadir)/wine`,g" $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
75         chmod +x wineprefixcreate
76
77 install install-lib:: wineprefixcreate $(INSTALLDIRS)
78         $(INSTALL_SCRIPT) wineprefixcreate $(DESTDIR)$(bindir)/wineprefixcreate
79         $(INSTALL_DATA) $(SRCDIR)/wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
80         $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
81         $(INSTALL_DATA) wineprefixcreate.man $(DESTDIR)$(mandir)/man$(prog_manext)/wineprefixcreate.$(prog_manext)
82         -$(UPDATE_DESKTOP_DATABASE)
83
84 install install-dev:: $(INSTALLSUBDIRS:%=%/__install__) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
85         $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
86         $(INSTALL_DATA) winemaker.man $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
87
88 uninstall::
89         $(RM) $(DESTDIR)$(bindir)/winemaker $(DESTDIR)$(bindir)/wineprefixcreate $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext) $(DESTDIR)$(mandir)/man$(prog_manext)/wineprefixcreate.$(prog_manext) $(DESTDIR)$(datadir)/wine/wine.inf $(DESTDIR)$(datadir)/applications/wine.desktop
90         -$(UPDATE_DESKTOP_DATABASE)
91
92 wmc wrc: relpath$(EXEEXT)
93
94 @DEPENDENCIES@  # everything below this line is overwritten by make depend
95
96 Makefile: makedep$(EXEEXT)