~ubuntu-branches/ubuntu/raring/mozvoikko/raring

« back to all changes in this revision

Viewing changes to src/Makefile.xulrunner

  • Committer: Bazaar Package Importer
  • Author(s): Heikki Mäntysaari
  • Date: 2009-05-15 21:59:04 UTC
  • mfrom: (2.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090515215904-ykbbacn4ier1t2ld
Tags: 1.0-1ubuntu1
* Merge new upstream release from Debian. Closes LP: #377049
* Keep Ubuntu changes in debian/control
* Add optional dependency to firefox-3.5.
* Change conflict to abrowser (>= 3.6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Harri Pitkänen <hatapitk@iki.fi>
 
1
# Copyright (C) 2008 - 2009 Harri Pitkänen <hatapitk@iki.fi>
2
2
#
3
3
# This program is free software; you can redistribute it and/or
4
4
# modify it under the terms of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
16
16
 
17
 
XULRUNNER_SDK=$(shell pkg-config --variable=sdkdir libxul)
18
 
XULRUNNER_INCDIR=$(shell pkg-config --variable=includedir libxul)
19
 
NSPR_INCLUDES=$(shell pkg-config --cflags-only-I nspr)
20
17
DESTDIR=/usr/lib/firefox
21
18
CC=g++ -c
22
19
CC_LINK=g++ -shared -Wl,--no-undefined
23
20
include ../mozvoikko.config
24
21
 
25
 
XULRUNNER_INCLUDES=-I$(XULRUNNER_SDK)/sdk/include -I$(XULRUNNER_SDK)/include \
26
 
-I$(XULRUNNER_INCDIR)/xpcom \
27
 
-I$(XULRUNNER_INCDIR)/spellchecker \
28
 
-I$(XULRUNNER_INCDIR)/uconv \
29
 
-I$(XULRUNNER_INCDIR)/unicharutil \
30
 
-I$(XULRUNNER_INCDIR)/xulapp \
31
 
-I$(XULRUNNER_INCDIR)/unstable
32
 
XULRUNNER_LIBS=-L$(XULRUNNER_SDK)/sdk/lib -L$(XULRUNNER_SDK)/sdk/bin \
33
 
-Wl,-rpath-link,$(XULRUNNER_SDK)/sdk/bin -lxpcomglue_s -lxpcom -lnspr4
 
22
XULRUNNER_INCLUDES=$(shell pkg-config --cflags libxul-unstable)
 
23
XULRUNNER_LIBS=$(shell pkg-config --libs libxul-unstable)
34
24
 
35
25
HEADERS=mozVoikko.hxx mozVoikkoSpell.hxx mozVoikkoUtils.hxx
36
26
OBJECTS=mozVoikko mozVoikkoSpell mozVoikkoUtils mozVoikkoSpellFactory
41
31
ifndef CFLAGS
42
32
        CFLAGS=-O2
43
33
endif
44
 
CC_FLAGS=$(CFLAGS) -Wall -Werror -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -fshort-wchar -fPIC
45
 
CC_INCLUDES=$(NSPR_INCLUDES) $(XULRUNNER_INCLUDES) \
46
 
-include mozilla-config.h -include xpcom-config.h
 
34
CC_FLAGS=$(CFLAGS) -Wall -Werror -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -fPIC
 
35
CC_INCLUDES=$(XULRUNNER_INCLUDES) -include mozilla-config.h -include xpcom-config.h
47
36
CC_DEFINES=-DSYSTEM_LIBVOIKKO
48
 
CC_LIBS=$(XULRUNNER_LIBS)
 
37
CC_LIBS=-Wl,--as-needed $(XULRUNNER_LIBS)
49
38
 
50
39
.PHONY: all clean xpi extension-files install-unpacked
51
40