Makefile.in 2.8 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
	wineprefixcreate
18

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

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

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

39 40 41
SUBDIRS = $(INSTALLSUBDIRS)

EXTRASUBDIRS = winapi
42

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

49 50
UPDATE_DESKTOP_DATABASE = update-desktop-database

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

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

55
makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
56
	$(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
Alexandre Julliard's avatar
Alexandre Julliard committed
57

58
make_ctests$(EXEEXT): make_ctests.o
59
	$(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
60

61
fnt2bdf$(EXEEXT): fnt2bdf.o
62
	$(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
Alexandre Julliard's avatar
Alexandre Julliard committed
63

64
fnt2fon$(EXEEXT): fnt2fon.o
65
	$(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
66

67
relpath$(EXEEXT): relpath.o
68
	$(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
69

70 71
sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
	$(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
72

73 74
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)
75 76
	chmod +x wineprefixcreate

77
install install-lib:: wineprefixcreate $(INSTALLDIRS)
78 79 80
	$(INSTALL_SCRIPT) wineprefixcreate $(DESTDIR)$(bindir)/wineprefixcreate
	$(INSTALL_DATA) $(SRCDIR)/wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
	$(INSTALL_DATA) $(SRCDIR)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
81
	$(INSTALL_DATA) wineprefixcreate.man $(DESTDIR)$(mandir)/man$(prog_manext)/wineprefixcreate.$(prog_manext)
82
	-$(UPDATE_DESKTOP_DATABASE)
83

84
install install-dev:: $(INSTALLSUBDIRS:%=%/__install__) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
85 86
	$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
	$(INSTALL_DATA) winemaker.man $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
87

88
uninstall::
89
	$(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
90
	-$(UPDATE_DESKTOP_DATABASE)
91

92 93
wmc wrc: relpath$(EXEEXT)

94
@DEPENDENCIES@  # everything below this line is overwritten by make depend
95 96

Makefile: makedep$(EXEEXT)