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

« back to all changes in this revision

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

  • 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
CC_BASE = $(shell basename $(CC))
 
16
 
 
17
ifeq ($(CC_BASE),clang)
 
18
LDFLAGS += -dynamiclib -install_name @executable_path/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1 -single_module
 
19
else
 
20
ifeq ($(CC_BASE),gcc)
 
21
LDFLAGS += -shared -Wl,-Bsymbolic
 
22
CFLAGS += -fPIC
 
23
else
 
24
$(error "Unknown compiler. please specify compiler and linker options (CFLAGS and LDFLAGS)")
 
25
endif
 
26
endif
 
27
 
 
28
ifeq ($(OS_ARCH),WINNT)
 
29
OBJ_SUFF = obj
 
30
endif
 
31
 
 
32
source = subprocess.c
 
33
objfiles = subprocess.$(OBJ_SUFF)
 
34
libname = $(DLL_PREFIX)subprocess$(DLL_SUFFIX)
 
35
 
 
36
all: libs
 
37
 
 
38
libs: source
 
39
        $(CC) $(LDFLAGS) -o $(libname) $(objfiles)
 
40
 
 
41
source: $(source)
 
42
        $(CC) $(CFLAGS) -Wno-return-type-c-linkage -c -o $(objfiles) $^
 
43
 
 
44
 
 
45
clean:
 
46
        rm -f $(objfiles) $(libname)
 
47
 
 
48
tools:
 
49
 
 
50
export: