1 TOPSRCDIR = @top_srcdir@
7 DEFS = -D__WINESRC__ $(EXTRADEFS)
8 EXTRAINCL = @FREETYPEINCL@
9 FREETYPELIBS = @FREETYPELIBS@
14 make_ctests$(EXEEXT) \
38 $(DESTDIR)$(datadir)/applications \
39 $(DESTDIR)$(datadir)/wine \
40 $(DESTDIR)$(mandir)/man$(prog_manext) \
41 $(DESTDIR)$(mandir)/de.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 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
77 install install-lib:: wine.inf wineprefixcreate $(INSTALLDIRS)
78 $(INSTALL_SCRIPT) wineprefixcreate $(DESTDIR)$(bindir)/wineprefixcreate
79 $(INSTALL_DATA) 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)
84 install install-dev:: $(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 $(INSTALL_DATA) winemaker.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
90 $(RM) $(DESTDIR)$(bindir)/winemaker $(DESTDIR)$(bindir)/wineprefixcreate $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext) $(DESTDIR)$(mandir)/man$(prog_manext)/wineprefixcreate.$(prog_manext) $(DESTDIR)$(datadir)/wine/wine.inf $(DESTDIR)$(datadir)/applications/wine.desktop
91 -$(UPDATE_DESKTOP_DATABASE)
93 depend: makedep$(EXEEXT)