1 TOPSRCDIR = @top_srcdir@
7 DEFS = -D__WINESRC__ $(EXTRADEFS)
8 EXTRAINCL = @FREETYPEINCL@
9 FREETYPELIBS = @FREETYPELIBS@
14 make_ctests$(EXEEXT) \
37 $(DESTDIR)$(datadir)/applications \
38 $(DESTDIR)$(datadir)/wine \
39 $(DESTDIR)$(mandir)/man$(prog_manext) \
40 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
41 $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
43 UPDATE_DESKTOP_DATABASE = update-desktop-database
45 all: makedep$(EXEEXT) $(PROGRAMS) $(MANPAGES)
49 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
50 $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
52 make_ctests$(EXEEXT): make_ctests.o
53 $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
55 fnt2bdf$(EXEEXT): fnt2bdf.o
56 $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
58 fnt2fon$(EXEEXT): fnt2fon.o
59 $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
61 relpath$(EXEEXT): relpath.o
62 $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
64 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
65 $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
68 LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.inf.in >$@ || ($(RM) $@ && false)
70 wineapploader: wineapploader.in
71 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
73 install install-lib:: wine.inf $(INSTALLDIRS)
74 $(INSTALL_DATA) wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
75 $(INSTALL_DATA) $(SRCDIR)/l_intl.nls $(DESTDIR)$(datadir)/wine/l_intl.nls
76 $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
77 -$(UPDATE_DESKTOP_DATABASE)
79 install install-dev:: $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
80 $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
81 $(INSTALL_DATA) winemaker.man $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
82 $(INSTALL_DATA) winemaker.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
83 $(INSTALL_DATA) winemaker.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
86 $(RM) $(DESTDIR)$(datadir)/wine/wine.inf \
87 $(DESTDIR)$(datadir)/wine/l_intl.nls \
88 $(DESTDIR)$(datadir)/applications/wine.desktop \
89 $(DESTDIR)$(bindir)/winemaker \
90 $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext) \
91 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext) \
92 $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
93 -$(UPDATE_DESKTOP_DATABASE)
95 depend: makedep$(EXEEXT)