Makefile.in 1.95 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
MODULE    = none
7 8
EXTRAINCL = @FREETYPEINCL@
FREETYPELIBS = @FREETYPELIBS@
Alexandre Julliard's avatar
Alexandre Julliard committed
9

10 11 12
PROGRAMS = \
	bin2res \
	fnt2bdf \
13
	fnt2fon \
14
	makedep \
15
	sfnt2fnt \
16
	wineprefixcreate
17 18 19 20

C_SRCS = \
	bin2res.c \
	fnt2bdf.c \
21 22 23
	fnt2fon.c \
	makedep.c \
	sfnt2fnt.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
24

25
SUBDIRS = \
26
	widl \
27
	winebuild \
28
	winedump \
29
	winegcc \
30
	wmc \
31 32
	wrc

33
INSTALLSUBDIRS = $(SUBDIRS)
34

35
EXTRASUBDIRS = winapi_check
36

37 38
UPDATE_DESKTOP_DATABASE = update-desktop-database

39
all: $(PROGRAMS) $(SUBDIRS)
Alexandre Julliard's avatar
Alexandre Julliard committed
40

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

43
makedep: makedep.o
44
	$(CC) $(CFLAGS) -o makedep makedep.o
Alexandre Julliard's avatar
Alexandre Julliard committed
45

46
fnt2bdf: fnt2bdf.o
47
	$(CC) $(CFLAGS) -o fnt2bdf fnt2bdf.o $(LIBPORT)
Alexandre Julliard's avatar
Alexandre Julliard committed
48

49 50 51 52
fnt2fon: fnt2fon.o
	$(CC) $(CFLAGS) -o fnt2fon fnt2fon.o $(LIBPORT)

sfnt2fnt: sfnt2fnt.o
53
	$(CC) $(CFLAGS) -o sfnt2fnt sfnt2fnt.o $(LIBUNICODE) $(LIBPORT) $(FREETYPELIBS)
54

55
bin2res: bin2res.o
56
	$(CC) $(CFLAGS) -o bin2res bin2res.o $(LIBPORT)
57

58 59 60 61
wineprefixcreate: wineprefixcreate.in
	sed -e 's,@dlldir\@,$(dlldir),g' -e 's,@datadir\@,$(datadir),g' $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
	chmod +x wineprefixcreate

62 63
install install-lib:: wineprefixcreate
	$(MKINSTALLDIRS) $(bindir) $(datadir)/wine $(datadir)/applications
64
	$(INSTALL_SCRIPT) wineprefixcreate $(bindir)/wineprefixcreate
65
	$(INSTALL_DATA) $(SRCDIR)/wine.inf $(datadir)/wine/wine.inf
66 67
	$(INSTALL_DATA) $(SRCDIR)/wine.desktop $(datadir)/applications/wine.desktop
	-$(UPDATE_DESKTOP_DATABASE)
68

69 70 71 72 73
install install-dev:: $(INSTALLSUBDIRS:%=%/__install__)
	$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
	$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
	$(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)

74
uninstall::
75 76 77
	$(RM) $(bindir)/winemaker $(bindir)/wineprefixcreate $(mandir)/man$(prog_manext)/winemaker.$(prog_manext) \
	      $(datadir)/wine/wine.inf $(datadir)/applications/wine.desktop
	-$(UPDATE_DESKTOP_DATABASE)
78

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