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

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

14 15 16
MANPAGE = winemaker.man

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

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

28
EXTRASUBDIRS = winapi
29

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

38 39
UPDATE_DESKTOP_DATABASE = update-desktop-database

40
all: makedep$(EXEEXT) $(PROGRAMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
41

Alexandre Julliard's avatar
Alexandre Julliard committed
42
@MAKE_RULES@
Alexandre Julliard's avatar
Alexandre Julliard committed
43

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

47
make_ctests$(EXEEXT): make_ctests.o
48
	$(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
49

50 51 52
make_xftmpl$(EXEEXT): make_xftmpl.o
	$(CC) $(CFLAGS) -o $@ make_xftmpl.o $(LIBPORT) $(LDFLAGS)

53
fnt2fon$(EXEEXT): fnt2fon.o
54
	$(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
55

56
relpath$(EXEEXT): relpath.o
57
	$(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
58

59 60
sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
	$(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
61

62
wine.inf: wine.inf.in
63
	LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(srcdir)/wine.inf.in >$@ || ($(RM) $@ && false)
64

65
wineapploader: wineapploader.in
66
	sed -e 's,@bindir\@,$(bindir),g' $(srcdir)/wineapploader.in >$@ || ($(RM) $@ && false)
67

68
install install-lib:: wine.inf $(INSTALLDIRS)
69
	$(INSTALL_DATA) wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
70 71
	$(INSTALL_DATA) $(srcdir)/l_intl.nls $(DESTDIR)$(datadir)/wine/l_intl.nls
	$(INSTALL_DATA) $(srcdir)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
72
	-$(UPDATE_DESKTOP_DATABASE)
73

74
install install-dev:: $(DESTDIR)$(bindir) install-man-pages
75
	$(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
76 77

install-man-pages:: $(EXTRA_MANPAGES) $(INSTALLDIRS)
78
	$(INSTALL_DATA) winemaker.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
79
	$(INSTALL_DATA) winemaker.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
80

81
uninstall::
82 83 84 85
	$(RM) $(DESTDIR)$(datadir)/wine/wine.inf \
		$(DESTDIR)$(datadir)/wine/l_intl.nls \
		$(DESTDIR)$(datadir)/applications/wine.desktop \
		$(DESTDIR)$(bindir)/winemaker \
86 87
		$(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext) \
		$(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
88
	-$(UPDATE_DESKTOP_DATABASE)
89

90
depend: makedep$(EXEEXT)