riched20: Avoid using long.
[wine] / tools / Makefile.in
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@
10
11 PROGRAMS = \
12         fnt2bdf$(EXEEXT) \
13         fnt2fon$(EXEEXT) \
14         make_ctests$(EXEEXT) \
15         relpath$(EXEEXT) \
16         sfnt2fnt$(EXEEXT) \
17         wine.inf \
18         wineapploader
19
20 MANPAGES = \
21         winemaker.man \
22         winemaker.de.man \
23         winemaker.fr.man
24
25 C_SRCS = \
26         fnt2bdf.c \
27         fnt2fon.c \
28         make_ctests.c \
29         makedep.c \
30         relpath.c \
31         sfnt2fnt.c
32
33 EXTRASUBDIRS = winapi
34
35 INSTALLDIRS = \
36         $(DESTDIR)$(bindir) \
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)
42
43 UPDATE_DESKTOP_DATABASE = update-desktop-database
44
45 all: makedep$(EXEEXT) $(PROGRAMS) $(MANPAGES)
46
47 @MAKE_RULES@
48
49 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
50         $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
51
52 make_ctests$(EXEEXT): make_ctests.o
53         $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
54
55 fnt2bdf$(EXEEXT): fnt2bdf.o
56         $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
57
58 fnt2fon$(EXEEXT): fnt2fon.o
59         $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
60
61 relpath$(EXEEXT): relpath.o
62         $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
63
64 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
65         $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
66
67 wine.inf: wine.inf.in
68         LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.inf.in >$@ || ($(RM) $@ && false)
69
70 wineapploader: wineapploader.in
71         sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
72
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)
78
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)
84
85 uninstall::
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)
94
95 depend: makedep$(EXEEXT)