blob: 78afd6a778e7ede4f0a859baa574892a9f5f6c6b [file] [log] [blame]
Alexandre Julliard280661c2003-09-11 21:27:58 +00001DEFS = -DLEX_OUTPUT_ROOT="\"@LEX_OUTPUT_ROOT@\""
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00002TOPSRCDIR = @top_srcdir@
3TOPOBJDIR = ..
4SRCDIR = @srcdir@
5VPATH = @srcdir@
Detlef Riekenberg0596fe12005-08-08 15:02:29 +00006EXEEXT = @EXEEXT@
Alexandre Julliard6a9fe362003-03-19 22:09:16 +00007MODULE = none
Huw Davies00acb5f2004-08-17 22:33:14 +00008EXTRAINCL = @FREETYPEINCL@
9FREETYPELIBS = @FREETYPELIBS@
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010
Dimitrie O. Paun2652dcf2002-12-05 19:12:13 +000011PROGRAMS = \
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000012 bin2res$(EXEEXT) \
13 fnt2bdf$(EXEEXT) \
14 fnt2fon$(EXEEXT) \
15 make_ctests$(EXEEXT) \
16 makedep$(EXEEXT) \
17 sfnt2fnt$(EXEEXT) \
Alexandre Julliardbd603642004-04-01 05:03:27 +000018 wineprefixcreate
Dimitrie O. Paun2652dcf2002-12-05 19:12:13 +000019
Alexandre Julliard12a74992005-10-06 16:10:01 +000020MANPAGES = \
21 winemaker.man
22
Dimitrie O. Paun2652dcf2002-12-05 19:12:13 +000023C_SRCS = \
24 bin2res.c \
25 fnt2bdf.c \
Huw Davies00acb5f2004-08-17 22:33:14 +000026 fnt2fon.c \
Alexandre Julliardbcb75912005-03-16 20:02:17 +000027 make_ctests.c \
Huw Davies00acb5f2004-08-17 22:33:14 +000028 makedep.c \
29 sfnt2fnt.c \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000030
Alexandre Julliard7b077df2005-06-28 19:38:55 +000031INSTALLSUBDIRS = \
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000032 widl \
Alexandre Julliarde482eeb2000-06-23 20:15:35 +000033 winebuild \
Eric Pouechd786a122001-09-07 16:04:38 +000034 winedump \
Alexandre Julliard280661c2003-09-11 21:27:58 +000035 winegcc \
Bertho Stultiens30855912000-06-13 04:34:41 +000036 wmc \
Alexandre Julliardc53ceba2000-04-09 18:19:59 +000037 wrc
38
Alexandre Julliard7b077df2005-06-28 19:38:55 +000039SUBDIRS = \
40 $(INSTALLSUBDIRS) \
41 winapi
Gerald Pfeifer19f8f462000-06-18 17:20:53 +000042
Christian Neumairee15af02004-07-30 00:05:02 +000043UPDATE_DESKTOP_DATABASE = update-desktop-database
44
Alexandre Julliard12a74992005-10-06 16:10:01 +000045all: $(PROGRAMS) $(MANPAGES) $(SUBDIRS)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000046
Alexandre Julliardff8331e1995-09-18 11:19:54 +000047@MAKE_RULES@
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000048
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000049makedep$(EXEEXT): makedep.o
50 $(CC) $(CFLAGS) -o $@ makedep.o
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000051
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000052make_ctests$(EXEEXT): make_ctests.o
53 $(CC) $(CFLAGS) -o $@ make_ctests.o
Alexandre Julliardbcb75912005-03-16 20:02:17 +000054
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000055fnt2bdf$(EXEEXT): fnt2bdf.o
56 $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT)
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000057
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000058fnt2fon$(EXEEXT): fnt2fon.o
59 $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT)
Huw Davies00acb5f2004-08-17 22:33:14 +000060
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000061sfnt2fnt$(EXEEXT): sfnt2fnt.o
62 $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBUNICODE) $(LIBPORT) $(FREETYPELIBS)
Huw Davies00acb5f2004-08-17 22:33:14 +000063
Detlef Riekenberg0596fe12005-08-08 15:02:29 +000064bin2res$(EXEEXT): bin2res.o
65 $(CC) $(CFLAGS) -o $@ bin2res.o $(LIBPORT)
Alexandre Julliard2f158c22000-06-14 21:45:38 +000066
Alexandre Julliardbd603642004-04-01 05:03:27 +000067wineprefixcreate: wineprefixcreate.in
68 sed -e 's,@dlldir\@,$(dlldir),g' -e 's,@datadir\@,$(datadir),g' $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
69 chmod +x wineprefixcreate
70
Alexandre Julliardbeac1942005-03-02 12:18:55 +000071install install-lib:: wineprefixcreate
Mike Frysinger53928442006-02-14 13:51:38 +010072 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/wine $(DESTDIR)$(datadir)/applications
73 $(INSTALL_SCRIPT) wineprefixcreate $(DESTDIR)$(bindir)/wineprefixcreate
74 $(INSTALL_DATA) $(SRCDIR)/wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
75 $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
Christian Neumairee15af02004-07-30 00:05:02 +000076 -$(UPDATE_DESKTOP_DATABASE)
Alexandre Julliard2f158c22000-06-14 21:45:38 +000077
Alexandre Julliard12a74992005-10-06 16:10:01 +000078install install-dev:: $(INSTALLSUBDIRS:%=%/__install__) $(MANPAGES)
Mike Frysinger53928442006-02-14 13:51:38 +010079 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
80 $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(DESTDIR)$(bindir)/winemaker
81 $(INSTALL_DATA) winemaker.man $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
Alexandre Julliardbeac1942005-03-02 12:18:55 +000082
Alexandre Julliardf673b712002-06-14 23:48:27 +000083uninstall::
Mike Frysinger53928442006-02-14 13:51:38 +010084 $(RM) $(DESTDIR)$(bindir)/winemaker $(DESTDIR)$(bindir)/wineprefixcreate $(DESTDIR)$(mandir)/man$(prog_manext)/winemaker.$(prog_manext) $(DESTDIR)$(datadir)/wine/wine.inf $(DESTDIR)$(datadir)/applications/wine.desktop
Christian Neumairee15af02004-07-30 00:05:02 +000085 -$(UPDATE_DESKTOP_DATABASE)
Juergen Schmied04f7fe71999-11-13 22:32:21 +000086
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000087### Dependencies: