Makefile.in 2.18 KB
Newer Older
1
DEFS      = -DLEX_OUTPUT_ROOT="\"@LEX_OUTPUT_ROOT@\""
Alexandre Julliard's avatar
Alexandre Julliard committed
2 3 4 5
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
6
EXEEXT    = @EXEEXT@
7
MODULE    = none
8 9
EXTRAINCL = @FREETYPEINCL@
FREETYPELIBS = @FREETYPELIBS@
Alexandre Julliard's avatar
Alexandre Julliard committed
10

11
PROGRAMS = \
12 13 14 15 16 17
	bin2res$(EXEEXT) \
	fnt2bdf$(EXEEXT) \
	fnt2fon$(EXEEXT) \
	make_ctests$(EXEEXT) \
	makedep$(EXEEXT) \
	sfnt2fnt$(EXEEXT) \
18
	wineprefixcreate
19

20 21 22
MANPAGES = \
	winemaker.man

23 24 25
C_SRCS = \
	bin2res.c \
	fnt2bdf.c \
26
	fnt2fon.c \
27
	make_ctests.c \
28 29
	makedep.c \
	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) \
	winapi
42

43 44
UPDATE_DESKTOP_DATABASE = update-desktop-database

45
all: $(PROGRAMS) $(MANPAGES) $(SUBDIRS)
Alexandre Julliard's avatar
Alexandre Julliard committed
46

Alexandre Julliard's avatar
Alexandre Julliard committed
47
@MAKE_RULES@
Alexandre Julliard's avatar
Alexandre Julliard committed
48

49 50
makedep$(EXEEXT): makedep.o
	$(CC) $(CFLAGS) -o $@ makedep.o
Alexandre Julliard's avatar
Alexandre Julliard committed
51

52 53
make_ctests$(EXEEXT): make_ctests.o
	$(CC) $(CFLAGS) -o $@ make_ctests.o
54

55 56
fnt2bdf$(EXEEXT): fnt2bdf.o
	$(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT)
Alexandre Julliard's avatar
Alexandre Julliard committed
57

58 59
fnt2fon$(EXEEXT): fnt2fon.o
	$(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT)
60

61 62
sfnt2fnt$(EXEEXT): sfnt2fnt.o
	$(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBUNICODE) $(LIBPORT) $(FREETYPELIBS)
63

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

67 68 69 70
wineprefixcreate: wineprefixcreate.in
	sed -e 's,@dlldir\@,$(dlldir),g' -e 's,@datadir\@,$(datadir),g' $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
	chmod +x wineprefixcreate

71 72
install install-lib:: wineprefixcreate
	$(MKINSTALLDIRS) $(bindir) $(datadir)/wine $(datadir)/applications
73
	$(INSTALL_SCRIPT) wineprefixcreate $(bindir)/wineprefixcreate
74
	$(INSTALL_DATA) $(SRCDIR)/wine.inf $(datadir)/wine/wine.inf
75 76
	$(INSTALL_DATA) $(SRCDIR)/wine.desktop $(datadir)/applications/wine.desktop
	-$(UPDATE_DESKTOP_DATABASE)
77

78
install install-dev:: $(INSTALLSUBDIRS:%=%/__install__) $(MANPAGES)
79 80
	$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
	$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
81
	$(INSTALL_DATA) winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
82

83
uninstall::
84 85 86
	$(RM) $(bindir)/winemaker $(bindir)/wineprefixcreate $(mandir)/man$(prog_manext)/winemaker.$(prog_manext) \
	      $(datadir)/wine/wine.inf $(datadir)/applications/wine.desktop
	-$(UPDATE_DESKTOP_DATABASE)
87

Alexandre Julliard's avatar
Alexandre Julliard committed
88
### Dependencies: