~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/ssl/pkix/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# %CopyrightBegin%
3
 
4
 
# Copyright Ericsson AB 2003-2009. All Rights Reserved.
5
 
6
 
# The contents of this file are subject to the Erlang Public License,
7
 
# Version 1.1, (the "License"); you may not use this file except in
8
 
# compliance with the License. You should have received a copy of the
9
 
# Erlang Public License along with this software. If not, it can be
10
 
# retrieved online at http://www.erlang.org/.
11
 
12
 
# Software distributed under the License is distributed on an "AS IS"
13
 
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
 
# the License for the specific language governing rights and limitations
15
 
# under the License.
16
 
17
 
# %CopyrightEnd%
18
 
#
19
 
 
20
 
#
21
 
 
22
 
include $(ERL_TOP)/make/target.mk
23
 
include $(ERL_TOP)/make/$(TARGET)/otp.mk
24
 
 
25
 
# ----------------------------------------------------
26
 
# Application version
27
 
# ----------------------------------------------------
28
 
include ../vsn.mk
29
 
VSN=$(SSL_VSN)
30
 
 
31
 
# ----------------------------------------------------
32
 
# Release directory specification
33
 
# ----------------------------------------------------
34
 
RELSYSDIR = $(RELEASE_PATH)/lib/ssl-$(VSN)
35
 
 
36
 
# ----------------------------------------------------
37
 
# Common Macros
38
 
# ----------------------------------------------------
39
 
 
40
 
.SUFFIXES: .asn1
41
 
.PRECIOUS: %.erl
42
 
 
43
 
ASN_TOP = OTP-PKIX
44
 
ASN_MODULES = PKIX1Explicit88 PKIX1Implicit88 PKIX1Algorithms88 \
45
 
        PKIXAttributeCertificate SSL-PKIX 
46
 
ASN_ASNS = $(ASN_MODULES:%=%.asn1)
47
 
ASN_ERLS = $(ASN_TOP).erl
48
 
ASN_HRLS = $(ASN_TOP).hrl
49
 
ASN_CONFIGS = OTP-PKIX.asn1config
50
 
ASN_DBS = $(ASN_MODULES:%=%.asn1db)
51
 
ASN_TABLES = $(ASN_MODULES:%=%.table)
52
 
 
53
 
GEN_MODULES = ssl_pkix_oid $(ORBER_TMP_FIX_ERL)
54
 
GEN_ERLS    = $(GEN_MODULES:%=%.erl)
55
 
ERL_MODULES = $(ASN_TOP) $(GEN_MODULES)
56
 
 
57
 
TARGET_FILES= $(ERL_MODULES:%=$(EBIN)/%.$(EMULATOR))
58
 
 
59
 
HRL_FILES = $(ASN_HRLS:%=$(INCLUDE)/%)
60
 
 
61
 
ORBER_TMP_FIX_HRL = PKIX1Algorithms88.hrl PKIX1Explicit88.hrl \
62
 
        PKIX1Implicit88.hrl PKIXAttributeCertificate.hrl
63
 
 
64
 
INCLUDE = ../include
65
 
EBIN = ../ebin
66
 
 
67
 
# ----------------------------------------------------
68
 
# FLAGS
69
 
# ----------------------------------------------------
70
 
EXTRA_ERLC_FLAGS = 
71
 
ERL_COMPILE_FLAGS += $(EXTRA_ERLC_FLAGS)
72
 
 
73
 
ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj +asn1config +inline
74
 
 
75
 
# ----------------------------------------------------
76
 
# Targets
77
 
# ----------------------------------------------------
78
 
 
79
 
debug opt: $(TARGET_FILES) $(HRL_FILES)
80
 
 
81
 
clean:
82
 
        -rm -f $(ASN_ERLS) $(GEN_ERLS) $(ASN_HRLS) $(HRL_FILES) $(ASN_DBS) \
83
 
                $(ASN_TABLES)  $(TARGET_FILES) *.beam *~
84
 
 
85
 
docs:
86
 
 
87
 
%.erl: %.set.asn
88
 
        erlc $(ASN_FLAGS) $<
89
 
 
90
 
ssl_pkix_oid.erl:       mk_ssl_pkix_oid.beam $(EBIN)/OTP-PKIX.beam
91
 
        erl -pa $(EBIN) -noshell -s mk_ssl_pkix_oid make -s erlang halt
92
 
 
93
 
$(HRL_FILES):   $(ASN_HRLS)
94
 
        cp -p $(ASN_HRLS) $(INCLUDE)
95
 
 
96
 
# ----------------------------------------------------
97
 
# Release Target
98
 
# ---------------------------------------------------- 
99
 
include $(ERL_TOP)/make/otp_release_targets.mk
100
 
 
101
 
release_spec: opt
102
 
        $(INSTALL_DIR) $(RELSYSDIR)/include
103
 
        $(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/include
104
 
        $(INSTALL_DIR) $(RELSYSDIR)/pkix
105
 
        $(INSTALL_DATA) $(ASN_ASNS) $(ASN_ERLS) $(ASN_HRLS) $(ASN_CONFIGS) \
106
 
                $(ORBER_TMP_FIX_HRL) $(GEN_ERLS) mk_ssl_pkix_oid.erl $(RELSYSDIR)/pkix
107
 
        $(INSTALL_DIR) $(RELSYSDIR)/ebin
108
 
        $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
109
 
 
110
 
release_docs_spec:
111
 
 
112
 
#
113
 
# Dependencies
114
 
 
115
 
$(EBIN)/OTP-PKIX.beam:  OTP-PKIX.erl OTP-PKIX.hrl
116
 
OTP-PKIX.erl OTP-PKIX.hrl:      OTP-PKIX.asn1db
117
 
OTP-PKIX.asn1db:                PKIX1Algorithms88.asn1 \
118
 
                                PKIX1Explicit88.asn1 \
119
 
                                PKIX1Implicit88.asn1 \
120
 
                                PKIXAttributeCertificate.asn1 \
121
 
                                SSL-PKIX.asn1