~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mailnews/extensions/enigmail/ipc/src/Makefile.enig

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This Source Code Form is subject to the terms of the Mozilla Public
 
2
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
4
 
 
5
DEPTH           = ../../../../..
 
6
topsrcdir       = @top_srcdir@
 
7
srcdir          = @srcdir@
 
8
VPATH           = @srcdir@
 
9
 
 
10
include $(DEPTH)/config/autoconf.mk
 
11
 
 
12
OBJ_SUFF = o
 
13
LDFLAGS =
 
14
CFLAGS =
 
15
 
 
16
ifeq ($(OS_ARCH),Darwin)
 
17
LDFLAGS += -dynamiclib -install_name @executable_path/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1 -single_module
 
18
endif
 
19
 
 
20
ifeq ($(OS_ARCH),NetBSD)
 
21
ifeq ($(DLL_SUFFIX),.so.1.0)
 
22
LDFLAGS += -Wl,-Bsymbolic
 
23
CFLAGS += -fPIC
 
24
endif
 
25
endif
 
26
 
 
27
ifeq ($(OS_ARCH),FreeBSD)
 
28
LDFLAGS += -Wl,-Bsymbolic
 
29
CFLAGS += -fPIC
 
30
endif
 
31
 
 
32
ifeq ($(OS_ARCH),OpenBSD)
 
33
LDFLAGS += -shared -Wl,-Bsymbolic
 
34
CFLAGS += -fPIC
 
35
endif
 
36
 
 
37
ifeq ($(OS_ARCH),HP-UX)
 
38
ifeq ($(GNU_CC)$(GNU_CXX),)
 
39
LDFLAGS += -Wl,-Bsymbolic
 
40
CFLAGS += -fPIC
 
41
endif
 
42
endif
 
43
 
 
44
ifeq ($(OS_ARCH),OSF1)
 
45
ifeq ($(GNU_CC)$(GNU_CXX),)
 
46
LDFLAGS += -B symbolic
 
47
CFLAGS += -fPIC
 
48
endif
 
49
endif
 
50
 
 
51
ifeq ($(OS_ARCH),Linux)
 
52
LDFLAGS += -shared -Wl,-Bsymbolic
 
53
CFLAGS += -fPIC
 
54
endif
 
55
 
 
56
ifeq ($(OS_ARCH),WINNT)
 
57
OBJ_SUFF = obj
 
58
endif
 
59
 
 
60
source = subprocess.c
 
61
objfiles = subprocess.$(OBJ_SUFF)
 
62
libname = $(DLL_PREFIX)subprocess$(DLL_SUFFIX)
 
63
 
 
64
all: libs
 
65
 
 
66
libs: source
 
67
        $(CC) $(LDFLAGS) -o $(libname) $(objfiles)
 
68
 
 
69
source: $(source)
 
70
        $(CC) $(CFLAGS) -Wno-return-type-c-linkage -c -o $(objfiles) $^
 
71
 
 
72
 
 
73
clean:
 
74
        rm -f $(objfiles) $(libname)
 
75
 
 
76
tools:
 
77
 
 
78
export: