4
# Copyright Ericsson AB 2003-2009. All Rights Reserved.
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/.
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
22
include $(ERL_TOP)/make/target.mk
23
include $(ERL_TOP)/make/$(TARGET)/otp.mk
25
# ----------------------------------------------------
27
# ----------------------------------------------------
31
# ----------------------------------------------------
32
# Release directory specification
33
# ----------------------------------------------------
34
RELSYSDIR = $(RELEASE_PATH)/lib/ssl-$(VSN)
36
# ----------------------------------------------------
38
# ----------------------------------------------------
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)
53
GEN_MODULES = ssl_pkix_oid $(ORBER_TMP_FIX_ERL)
54
GEN_ERLS = $(GEN_MODULES:%=%.erl)
55
ERL_MODULES = $(ASN_TOP) $(GEN_MODULES)
57
TARGET_FILES= $(ERL_MODULES:%=$(EBIN)/%.$(EMULATOR))
59
HRL_FILES = $(ASN_HRLS:%=$(INCLUDE)/%)
61
ORBER_TMP_FIX_HRL = PKIX1Algorithms88.hrl PKIX1Explicit88.hrl \
62
PKIX1Implicit88.hrl PKIXAttributeCertificate.hrl
67
# ----------------------------------------------------
69
# ----------------------------------------------------
71
ERL_COMPILE_FLAGS += $(EXTRA_ERLC_FLAGS)
73
ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj +asn1config +inline
75
# ----------------------------------------------------
77
# ----------------------------------------------------
79
debug opt: $(TARGET_FILES) $(HRL_FILES)
82
-rm -f $(ASN_ERLS) $(GEN_ERLS) $(ASN_HRLS) $(HRL_FILES) $(ASN_DBS) \
83
$(ASN_TABLES) $(TARGET_FILES) *.beam *~
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
93
$(HRL_FILES): $(ASN_HRLS)
94
cp -p $(ASN_HRLS) $(INCLUDE)
96
# ----------------------------------------------------
98
# ----------------------------------------------------
99
include $(ERL_TOP)/make/otp_release_targets.mk
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
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 \