winemaker: Fix handling of the global settings specified on the command line.
[wine] / tools / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 EXEEXT    = @EXEEXT@
6 MODULE    = none
7 EXTRAINCL = @FREETYPEINCL@
8 FREETYPELIBS = @FREETYPELIBS@
9
10 PROGRAMS = \
11         fnt2bdf$(EXEEXT) \
12         fnt2fon$(EXEEXT) \
13         make_ctests$(EXEEXT) \
14         makedep$(EXEEXT) \
15         relpath$(EXEEXT) \
16         sfnt2fnt$(EXEEXT) \
17         wine.inf \
18         wineprefixcreate
19
20 MANPAGES = \
21         winemaker.man \
22         wineprefixcreate.man
23
24 C_SRCS = \
25         fnt2bdf.c \
26         fnt2fon.c \
27         make_ctests.c \
28         makedep.c \
29         relpath.c \
30         sfnt2fnt.c \
31
32 INSTALLSUBDIRS = \
33         widl \
34         winebuild \
35         winedump \
36         winegcc \
37         wmc \
38         wrc
39
40 SUBDIRS = $(INSTALLSUBDIRS)
41
42 EXTRASUBDIRS = winapi
43
44 INSTALLDIRS = \
45         $(DESTDIR)$(bindir) \
46         $(DESTDIR)$(datadir)/applications \
47         $(DESTDIR)$(datadir)/wine \
48         $(DESTDIR)$(mandir)/man$(prog_manext)
49
50 UPDATE_DESKTOP_DATABASE = update-desktop-database
51
52 all: $(PROGRAMS) $(MANPAGES) $(SUBDIRS)
53
54 @MAKE_RULES@
55
56 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
57         $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
58
59 make_ctests$(EXEEXT): make_ctests.o
60         $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
61
62 fnt2bdf$(EXEEXT): fnt2bdf.o
63         $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
64
65 fnt2fon$(EXEEXT): fnt2fon.o
66         $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
67
68 relpath$(EXEEXT): relpath.o
69         $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
70
71 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
72         $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
73
74 wine.inf: wine.inf.in
75         LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.inf.in >$@ || ($(RM) $@ && false)
76
77 wineprefixcreate: wineprefixcreate.in relpath$(EXEEXT)
78         sed -e "s,@bintodlldir\@,`$(RELPATH) $(bindir) $(dlldir)`,g" -e "s,@bintodatadir\@,`$(RELPATH) $(bindir) $(datadir)/wine`,g" $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
79         chmod +x wineprefixcreate
80
81 install install-lib:: wine.inf wineprefixcreate $(INSTALLDIRS)
82         $(INSTALL_SCRIPT) wineprefixcreate $(DESTDIR)$(bindir)/wineprefixcreate
83         $(INSTALL_DATA) wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
84         $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
85         $(INSTALL_DATA) wineprefixcreate.man $(DESTDIR)$(mandir)/man$(prog_manext)/wineprefixcreate.$(prog_manext)
86         -$(UPDATE_DESKTOP_DATABASE)
87
88 install install-dev:: $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
89         $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
90         $(INSTALL_DATA) winemaker.man $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
91
92 uninstall::
93         $(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
94         -$(UPDATE_DESKTOP_DATABASE)
95
96 wmc wrc: relpath$(EXEEXT)
97
98 @DEPENDENCIES@  # everything below this line is overwritten by make depend
99
100 Makefile: makedep$(EXEEXT)