push 6e61d6ca5bcaf95ac09a664b4ba4f88238c927be
[wine/hacks.git] / tools / Makefile.in
blob1f48cbca828d27b564fad4b3cf3da6f8d4bc912f
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 EXEEXT = @EXEEXT@
6 MODULE = none
7 DEFS = -D__WINESRC__ $(EXTRADEFS)
8 EXTRAINCL = @FREETYPEINCL@
9 FREETYPELIBS = @FREETYPELIBS@
11 PROGRAMS = \
12 fnt2bdf$(EXEEXT) \
13 fnt2fon$(EXEEXT) \
14 make_ctests$(EXEEXT) \
15 relpath$(EXEEXT) \
16 sfnt2fnt$(EXEEXT) \
17 wine.inf \
18 wineprefixcreate
20 MANPAGES = \
21 winemaker.man \
22 wineprefixcreate.man
24 C_SRCS = \
25 fnt2bdf.c \
26 fnt2fon.c \
27 make_ctests.c \
28 makedep.c \
29 relpath.c \
30 sfnt2fnt.c
32 EXTRASUBDIRS = winapi
34 INSTALLDIRS = \
35 $(DESTDIR)$(bindir) \
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)
44 @MAKE_RULES@
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)
64 wine.inf: wine.inf.in
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)
82 uninstall::
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)
88 @DEPENDENCIES@ # everything below this line is overwritten by make depend