makefiles: Move wineapploader to the tools directory and get rid of the programs...
[wine.git] / tools / Makefile.in
blob5e005e0661f449d2fe0be1f6b4a6fa9e53432c01
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 wineapploader \
19 wineprefixcreate
21 MANPAGES = \
22 winemaker.man \
23 wineprefixcreate.man
25 C_SRCS = \
26 fnt2bdf.c \
27 fnt2fon.c \
28 make_ctests.c \
29 makedep.c \
30 relpath.c \
31 sfnt2fnt.c
33 EXTRASUBDIRS = winapi
35 INSTALLDIRS = \
36 $(DESTDIR)$(bindir) \
37 $(DESTDIR)$(datadir)/applications \
38 $(DESTDIR)$(datadir)/wine \
39 $(DESTDIR)$(mandir)/man$(prog_manext)
41 UPDATE_DESKTOP_DATABASE = update-desktop-database
43 all: makedep$(EXEEXT) $(PROGRAMS) $(MANPAGES)
45 @MAKE_RULES@
47 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
48 $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
50 make_ctests$(EXEEXT): make_ctests.o
51 $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
53 fnt2bdf$(EXEEXT): fnt2bdf.o
54 $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
56 fnt2fon$(EXEEXT): fnt2fon.o
57 $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
59 relpath$(EXEEXT): relpath.o
60 $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
62 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
63 $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
65 wine.inf: wine.inf.in
66 LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.inf.in >$@ || ($(RM) $@ && false)
68 wineapploader: wineapploader.in
69 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
71 wineprefixcreate: wineprefixcreate.in relpath$(EXEEXT)
72 sed -e "s,@bintodlldir\@,`$(RELPATH) $(bindir) $(dlldir)`,g" -e "s,@bintodatadir\@,`$(RELPATH) $(bindir) $(datadir)/wine`,g" $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
73 chmod +x wineprefixcreate
75 install install-lib:: wine.inf wineprefixcreate $(INSTALLDIRS)
76 $(INSTALL_SCRIPT) wineprefixcreate $(DESTDIR)$(bindir)/wineprefixcreate
77 $(INSTALL_DATA) wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
78 $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
79 $(INSTALL_DATA) wineprefixcreate.man $(DESTDIR)$(mandir)/man$(prog_manext)/wineprefixcreate.$(prog_manext)
80 -$(UPDATE_DESKTOP_DATABASE)
82 install install-dev:: $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
83 $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
84 $(INSTALL_DATA) winemaker.man $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
86 uninstall::
87 $(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
88 -$(UPDATE_DESKTOP_DATABASE)
90 depend: makedep$(EXEEXT)