gameux: Free the allocated GameStatisticsImpl object on failure in GameStatisticsMgrI...
[wine] / tools / Makefile.in
1 DEFS      = -D__WINESRC__ $(EXTRADEFS)
2 EXTRAINCL = @FREETYPEINCL@
3 FREETYPELIBS = @FREETYPELIBS@
4
5 PROGRAMS = \
6         fnt2bdf$(EXEEXT) \
7         fnt2fon$(EXEEXT) \
8         make_ctests$(EXEEXT) \
9         relpath$(EXEEXT) \
10         sfnt2fnt$(EXEEXT) \
11         wine.inf \
12         wineapploader
13
14 MANPAGE = winemaker.man
15
16 EXTRA_MANPAGES = \
17         winemaker.de.man \
18         winemaker.fr.man
19
20 C_SRCS = \
21         fnt2bdf.c \
22         fnt2fon.c \
23         make_ctests.c \
24         makedep.c \
25         relpath.c \
26         sfnt2fnt.c
27
28 EXTRASUBDIRS = winapi
29
30 INSTALLDIRS = \
31         $(DESTDIR)$(bindir) \
32         $(DESTDIR)$(datadir)/applications \
33         $(DESTDIR)$(datadir)/wine \
34         $(DESTDIR)$(mandir)/man$(prog_manext) \
35         $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
36         $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
37
38 UPDATE_DESKTOP_DATABASE = update-desktop-database
39
40 all: makedep$(EXEEXT) $(PROGRAMS)
41
42 @MAKE_RULES@
43
44 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
45         $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
46
47 make_ctests$(EXEEXT): make_ctests.o
48         $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
49
50 fnt2bdf$(EXEEXT): fnt2bdf.o
51         $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
52
53 fnt2fon$(EXEEXT): fnt2fon.o
54         $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
55
56 relpath$(EXEEXT): relpath.o
57         $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
58
59 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
60         $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
61
62 wine.inf: wine.inf.in
63         LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(srcdir)/wine.inf.in >$@ || ($(RM) $@ && false)
64
65 wineapploader: wineapploader.in
66         sed -e 's,@bindir\@,$(bindir),g' $(srcdir)/wineapploader.in >$@ || ($(RM) $@ && false)
67
68 install install-lib:: wine.inf $(INSTALLDIRS)
69         $(INSTALL_DATA) wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
70         $(INSTALL_DATA) $(srcdir)/l_intl.nls $(DESTDIR)$(datadir)/wine/l_intl.nls
71         $(INSTALL_DATA) $(srcdir)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
72         -$(UPDATE_DESKTOP_DATABASE)
73
74 install install-dev:: $(DESTDIR)$(bindir) install-man-pages
75         $(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
76
77 install-man-pages:: $(EXTRA_MANPAGES) $(INSTALLDIRS)
78         $(INSTALL_DATA) winemaker.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
79         $(INSTALL_DATA) winemaker.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
80
81 uninstall::
82         $(RM) $(DESTDIR)$(datadir)/wine/wine.inf \
83                 $(DESTDIR)$(datadir)/wine/l_intl.nls \
84                 $(DESTDIR)$(datadir)/applications/wine.desktop \
85                 $(DESTDIR)$(bindir)/winemaker \
86                 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext) \
87                 $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
88         -$(UPDATE_DESKTOP_DATABASE)
89
90 depend: makedep$(EXEEXT)