Makefile.in 2.77 KB
Newer Older
1
DEFS      = -D__WINESRC__ $(EXTRADEFS)
2 3
EXTRAINCL = @FREETYPEINCL@
FREETYPELIBS = @FREETYPELIBS@
Alexandre Julliard's avatar
Alexandre Julliard committed
4

5
PROGRAMS = \
6 7 8
	fnt2bdf$(EXEEXT) \
	fnt2fon$(EXEEXT) \
	make_ctests$(EXEEXT) \
9
	make_xftmpl$(EXEEXT) \
10
	relpath$(EXEEXT) \
11
	sfnt2fnt$(EXEEXT) \
12
	wine.inf \
13
	wineapploader
14

15 16 17
MANPAGE = winemaker.man

EXTRA_MANPAGES = \
18 19
	winemaker.de.man \
	winemaker.fr.man
20

21 22
C_SRCS = \
	fnt2bdf.c \
23
	fnt2fon.c \
24
	make_ctests.c \
25
	make_xftmpl.c \
26
	makedep.c \
27
	relpath.c \
28
	sfnt2fnt.c
Alexandre Julliard's avatar
Alexandre Julliard committed
29

30
EXTRASUBDIRS = winapi
31

32 33 34 35
INSTALLDIRS = \
	$(DESTDIR)$(bindir) \
	$(DESTDIR)$(datadir)/applications \
	$(DESTDIR)$(datadir)/wine \
36
	$(DESTDIR)$(mandir)/man$(prog_manext) \
37 38
	$(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
	$(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
39

40 41
UPDATE_DESKTOP_DATABASE = update-desktop-database

42
all: makedep$(EXEEXT) $(PROGRAMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
43

Alexandre Julliard's avatar
Alexandre Julliard committed
44
@MAKE_RULES@
Alexandre Julliard's avatar
Alexandre Julliard committed
45

46
makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
47
	$(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
Alexandre Julliard's avatar
Alexandre Julliard committed
48

49
make_ctests$(EXEEXT): make_ctests.o
50
	$(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
51

52 53 54
make_xftmpl$(EXEEXT): make_xftmpl.o
	$(CC) $(CFLAGS) -o $@ make_xftmpl.o $(LIBPORT) $(LDFLAGS)

55
fnt2bdf$(EXEEXT): fnt2bdf.o
56
	$(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
Alexandre Julliard's avatar
Alexandre Julliard committed
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 65
sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
	$(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 76
	$(INSTALL_DATA) $(srcdir)/l_intl.nls $(DESTDIR)$(datadir)/wine/l_intl.nls
	$(INSTALL_DATA) $(srcdir)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
77
	-$(UPDATE_DESKTOP_DATABASE)
78

79
install install-dev:: $(DESTDIR)$(bindir) install-man-pages
80
	$(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
81 82

install-man-pages:: $(EXTRA_MANPAGES) $(INSTALLDIRS)
83
	$(INSTALL_DATA) winemaker.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
84
	$(INSTALL_DATA) winemaker.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
85

86
uninstall::
87 88 89 90
	$(RM) $(DESTDIR)$(datadir)/wine/wine.inf \
		$(DESTDIR)$(datadir)/wine/l_intl.nls \
		$(DESTDIR)$(datadir)/applications/wine.desktop \
		$(DESTDIR)$(bindir)/winemaker \
91 92
		$(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext) \
		$(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
93
	-$(UPDATE_DESKTOP_DATABASE)
94

95
depend: makedep$(EXEEXT)