Makefile.in 2.9 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
5
EXEEXT    = @EXEEXT@
6
MODULE    = none
7 8
EXTRAINCL = @FREETYPEINCL@
FREETYPELIBS = @FREETYPELIBS@
Alexandre Julliard's avatar
Alexandre Julliard committed
9

10
PROGRAMS = \
11 12 13 14
	fnt2bdf$(EXEEXT) \
	fnt2fon$(EXEEXT) \
	make_ctests$(EXEEXT) \
	makedep$(EXEEXT) \
15
	relpath$(EXEEXT) \
16
	sfnt2fnt$(EXEEXT) \
17
	wine.inf \
18
	wineprefixcreate
19

20
MANPAGES = \
21 22
	winemaker.man \
	wineprefixcreate.man
23

24 25
C_SRCS = \
	fnt2bdf.c \
26
	fnt2fon.c \
27
	make_ctests.c \
28
	makedep.c \
29
	relpath.c \
30
	sfnt2fnt.c
Alexandre Julliard's avatar
Alexandre Julliard committed
31

32
INSTALLSUBDIRS = \
33
	widl \
34
	winebuild \
35
	winedump \
36
	winegcc \
37
	wmc \
38 39
	wrc

40 41 42
SUBDIRS = $(INSTALLSUBDIRS)

EXTRASUBDIRS = winapi
43

44 45 46 47 48 49
INSTALLDIRS = \
	$(DESTDIR)$(bindir) \
	$(DESTDIR)$(datadir)/applications \
	$(DESTDIR)$(datadir)/wine \
	$(DESTDIR)$(mandir)/man$(prog_manext)

50 51
UPDATE_DESKTOP_DATABASE = update-desktop-database

52
all: $(PROGRAMS) $(MANPAGES) $(SUBDIRS)
Alexandre Julliard's avatar
Alexandre Julliard committed
53

Alexandre Julliard's avatar
Alexandre Julliard committed
54
@MAKE_RULES@
Alexandre Julliard's avatar
Alexandre Julliard committed
55

56
makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
57
	$(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
Alexandre Julliard's avatar
Alexandre Julliard committed
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)
Alexandre Julliard's avatar
Alexandre Julliard committed
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 72
sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
	$(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
73

74 75 76
wine.inf: wine.inf.in
	LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.inf.in >$@ || ($(RM) $@ && false)

77 78
wineprefixcreate: wineprefixcreate.in relpath$(EXEEXT)
	sed -e "s,@bintodlldir\@,`$(RELPATH) $(bindir) $(dlldir)`,g" -e "s,@bintodatadir\@,`$(RELPATH) $(bindir) $(datadir)/wine`,g" $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
79 80
	chmod +x wineprefixcreate

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 90
	$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
	$(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 97
wmc wrc: relpath$(EXEEXT)

98
@DEPENDENCIES@  # everything below this line is overwritten by make depend
99 100

Makefile: makedep$(EXEEXT)