1 TOPSRCDIR
= @top_srcdir@
7 DEFS
= -D__WINESRC__
$(EXTRADEFS
)
8 EXTRAINCL
= @FREETYPEINCL@
9 FREETYPELIBS
= @FREETYPELIBS@
14 make_ctests
$(EXEEXT
) \
36 $(DESTDIR
)$(datadir)/applications \
37 $(DESTDIR
)$(datadir)/wine \
38 $(DESTDIR
)$(mandir)/man
$(prog_manext
)
40 UPDATE_DESKTOP_DATABASE
= update-desktop-database
42 all: makedep
$(EXEEXT
) $(PROGRAMS
) $(MANPAGES
)
46 makedep
$(EXEEXT
) $(EXEEXT
:%=makedep
): makedep.o
47 $(CC
) $(CFLAGS
) -o
$@ makedep.o
$(LDFLAGS
)
49 make_ctests
$(EXEEXT
): make_ctests.o
50 $(CC
) $(CFLAGS
) -o
$@ make_ctests.o
$(LDFLAGS
)
52 fnt2bdf
$(EXEEXT
): fnt2bdf.o
53 $(CC
) $(CFLAGS
) -o
$@ fnt2bdf.o
$(LIBPORT
) $(LDFLAGS
)
55 fnt2fon
$(EXEEXT
): fnt2fon.o
56 $(CC
) $(CFLAGS
) -o
$@ fnt2fon.o
$(LIBPORT
) $(LDFLAGS
)
58 relpath
$(EXEEXT
): relpath.o
59 $(CC
) $(CFLAGS
) -o
$@ relpath.o
$(LIBPORT
) $(LDFLAGS
)
61 sfnt2fnt
$(EXEEXT
): sfnt2fnt.o relpath
$(EXEEXT
)
62 $(CC
) $(CFLAGS
) -o
$@ sfnt2fnt.o
$(LIBWINE
) $(LIBPORT
) $(LDFLAGS
) $(FREETYPELIBS
) $(LDRPATH_LOCAL
)
65 LC_ALL
=C sed
-e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR
)/wine.inf.in
>$@ ||
($(RM
) $@
&& false
)
67 wineprefixcreate
: wineprefixcreate.in relpath
$(EXEEXT
)
68 sed
-e
"s,@bintodlldir\@,`$(RELPATH) $(bindir) $(dlldir)`,g" -e
"s,@bintodatadir\@,`$(RELPATH) $(bindir) $(datadir)/wine`,g" $(SRCDIR
)/wineprefixcreate.in
>$@ ||
($(RM
) $@
&& false
)
69 chmod
+x wineprefixcreate
71 install install-lib
:: wine.inf wineprefixcreate
$(INSTALLDIRS
)
72 $(INSTALL_SCRIPT
) wineprefixcreate
$(DESTDIR
)$(bindir)/wineprefixcreate
73 $(INSTALL_DATA
) wine.inf
$(DESTDIR
)$(datadir)/wine
/wine.inf
74 $(INSTALL_DATA
) $(SRCDIR
)/wine.desktop
$(DESTDIR
)$(datadir)/applications
/wine.desktop
75 $(INSTALL_DATA
) wineprefixcreate.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/wineprefixcreate.
$(prog_manext
)
76 -$(UPDATE_DESKTOP_DATABASE
)
78 install install-dev
:: $(DESTDIR
)$(bindir) $(DESTDIR
)$(mandir)/man
$(prog_manext
)
79 $(INSTALL_SCRIPT
) $(SRCDIR
)/winemaker
$(DESTDIR
)$(bindir)/winemaker
80 $(INSTALL_DATA
) winemaker.man
$(DESTDIR
)$(mandir)/man
$(prog_manext
)/winemaker.
$(prog_manext
)
83 $(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
84 -$(UPDATE_DESKTOP_DATABASE
)
86 depend
: makedep
$(EXEEXT
)