1 TOPSRCDIR = @top_srcdir@
7 EXTRAINCL = @FREETYPEINCL@
8 FREETYPELIBS = @FREETYPELIBS@
13 make_ctests$(EXEEXT) \
39 SUBDIRS = $(INSTALLSUBDIRS)
45 $(DESTDIR)$(datadir)/applications \
46 $(DESTDIR)$(datadir)/wine \
47 $(DESTDIR)$(mandir)/man$(prog_manext)
49 UPDATE_DESKTOP_DATABASE = update-desktop-database
51 all: $(PROGRAMS) $(MANPAGES) $(SUBDIRS)
55 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
56 $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
58 make_ctests$(EXEEXT): make_ctests.o
59 $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
61 fnt2bdf$(EXEEXT): fnt2bdf.o
62 $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
64 fnt2fon$(EXEEXT): fnt2fon.o
65 $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
67 relpath$(EXEEXT): relpath.o
68 $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
70 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
71 $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
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:: 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)
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)
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)
92 wmc wrc: relpath$(EXEEXT)
94 @DEPENDENCIES@ # everything below this line is overwritten by make depend
96 Makefile: makedep$(EXEEXT)